about summary refs log tree commit diff
path: root/tvix/derivation
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/derivation')
-rw-r--r--tvix/derivation/src/derivation.rs5
-rw-r--r--tvix/derivation/src/write.rs1
2 files changed, 4 insertions, 2 deletions
diff --git a/tvix/derivation/src/derivation.rs b/tvix/derivation/src/derivation.rs
index 9531157d6f98..d6a5dc76b74a 100644
--- a/tvix/derivation/src/derivation.rs
+++ b/tvix/derivation/src/derivation.rs
@@ -5,6 +5,7 @@ use serde::{Deserialize, Serialize};
 use sha2::{Digest, Sha256};
 use std::{collections::BTreeMap, fmt, fmt::Write, iter::FromIterator};
 use tvix_store::nixbase32::NIXBASE32;
+use tvix_store::nixpath::STORE_DIR;
 
 #[derive(Serialize, Deserialize)]
 pub struct Derivation {
@@ -84,7 +85,9 @@ impl Derivation {
 
         hasher.update(format!("{:x}", digest));
         hasher.update(write::COLON);
-        hasher.update(write::STORE_PATH_COLON);
+        hasher.update(STORE_DIR);
+        hasher.update(write::COLON);
+
         hasher.update(name);
         hasher.update(write::DOT_FILE_EXT);
 
diff --git a/tvix/derivation/src/write.rs b/tvix/derivation/src/write.rs
index 0ad1eb71e4da..3fd8db792d10 100644
--- a/tvix/derivation/src/write.rs
+++ b/tvix/derivation/src/write.rs
@@ -13,7 +13,6 @@ pub const QUOTE: char = '"';
 pub const COLON: &str = ":";
 pub const TEXT_COLON: &str = "text:";
 pub const SHA256_COLON: &str = "sha256:";
-pub const STORE_PATH_COLON: &str = "/nix/store:";
 pub const DOT_FILE_EXT: &str = ".drv";
 
 fn write_array_elements(