about summary refs log tree commit diff
path: root/tvix/nix-compat/src/store_path/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/nix-compat/src/store_path/utils.rs')
-rw-r--r--tvix/nix-compat/src/store_path/utils.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/tvix/nix-compat/src/store_path/utils.rs b/tvix/nix-compat/src/store_path/utils.rs
index 6064bb36b3b3..b774fbdb662d 100644
--- a/tvix/nix-compat/src/store_path/utils.rs
+++ b/tvix/nix-compat/src/store_path/utils.rs
@@ -89,13 +89,7 @@ pub fn build_regular_ca_path<S: AsRef<str>, I: IntoIterator<Item = S>>(
                 &{
                     let content_digest = {
                         let mut hasher = Sha256::new_with_prefix("fixed:out:");
-                        hasher.update(hash_with_mode.mode().prefix());
-                        hasher.update(hash_with_mode.digest().algo().to_string());
-                        hasher.update(":");
-                        hasher.update(
-                            &data_encoding::HEXLOWER
-                                .encode(hash_with_mode.digest().digest_as_bytes()),
-                        );
+                        hasher.update(hash_with_mode.to_nix_hash_string());
                         hasher.update(":");
                         hasher.finalize()
                     };