about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
Diffstat (limited to 'tvix')
-rw-r--r--tvix/nix-compat/src/derivation/utils.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tvix/nix-compat/src/derivation/utils.rs b/tvix/nix-compat/src/derivation/utils.rs
index ee7ea26c6ae3..5c41fa6e55d2 100644
--- a/tvix/nix-compat/src/derivation/utils.rs
+++ b/tvix/nix-compat/src/derivation/utils.rs
@@ -32,8 +32,7 @@ pub(super) fn build_store_path(
     name: &str,
 ) -> Result<StorePath, DerivationError> {
     let digest = {
-        let mut hasher = Sha256::new();
-        hasher.update(fingerprint);
+        let hasher = Sha256::new_with_prefix(fingerprint);
         hasher.finalize()
     };
     let compressed = compress_hash(&digest, 20);