about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tvix/nix-compat/src/derivation/mod.rs2
-rw-r--r--tvix/nix-compat/src/derivation/write.rs4
-rw-r--r--tvix/nix-compat/src/nixhash/ca_hash.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/tvix/nix-compat/src/derivation/mod.rs b/tvix/nix-compat/src/derivation/mod.rs
index 7c5afdbdcf2b..848f1a31ff36 100644
--- a/tvix/nix-compat/src/derivation/mod.rs
+++ b/tvix/nix-compat/src/derivation/mod.rs
@@ -160,7 +160,7 @@ impl Derivation {
             Sha256::new_with_prefix(format!(
                 "fixed:out:{}{}:{}",
                 ca_kind_prefix(ca_hash),
-                ca_hash.digest().to_nix_hex_string(),
+                ca_hash.hash().to_nix_hex_string(),
                 out_output
                     .path
                     .as_ref()
diff --git a/tvix/nix-compat/src/derivation/write.rs b/tvix/nix-compat/src/derivation/write.rs
index a603c7a19d4e..f20bf4e121d2 100644
--- a/tvix/nix-compat/src/derivation/write.rs
+++ b/tvix/nix-compat/src/derivation/write.rs
@@ -137,8 +137,8 @@ pub(crate) fn write_outputs(
 
         let (mode_and_algo, digest) = match &output.ca_hash {
             Some(ca_hash) => (
-                format!("{}{}", ca_kind_prefix(ca_hash), ca_hash.digest().algo()),
-                data_encoding::HEXLOWER.encode(ca_hash.digest().digest_as_bytes()),
+                format!("{}{}", ca_kind_prefix(ca_hash), ca_hash.hash().algo()),
+                data_encoding::HEXLOWER.encode(ca_hash.hash().digest_as_bytes()),
             ),
             None => ("".to_string(), "".to_string()),
         };
diff --git a/tvix/nix-compat/src/nixhash/ca_hash.rs b/tvix/nix-compat/src/nixhash/ca_hash.rs
index 0d6c68d7fa7f..d69d19ce68f3 100644
--- a/tvix/nix-compat/src/nixhash/ca_hash.rs
+++ b/tvix/nix-compat/src/nixhash/ca_hash.rs
@@ -23,7 +23,7 @@ pub enum CAHash {
 }
 
 impl CAHash {
-    pub fn digest(&self) -> Cow<NixHash> {
+    pub fn hash(&self) -> Cow<NixHash> {
         match *self {
             CAHash::Flat(ref digest) => Cow::Borrowed(digest),
             CAHash::Nar(ref digest) => Cow::Borrowed(digest),