From 971080c9120725c0bec21ea2e5e14847b0e996e6 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 30 Mar 2023 13:27:23 +0200 Subject: refactor(tvix/nix-compat): add text_hash_string function Use it to calculate the text_hash_string, which is then used in the calculate_derivation_path and path_with_references functions. Relates to b/263. Change-Id: I7478825e2a23a11224212fea5e3fd06daa97d5e5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8364 Autosubmit: flokli Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/nix-compat/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'tvix/nix-compat/src/lib.rs') diff --git a/tvix/nix-compat/src/lib.rs b/tvix/nix-compat/src/lib.rs index 52b3ea65b99f..ec9ddd1ffa7b 100644 --- a/tvix/nix-compat/src/lib.rs +++ b/tvix/nix-compat/src/lib.rs @@ -7,6 +7,7 @@ pub mod nixhash; mod nixhash_algos; mod nixhash_with_mode; pub mod store_path; +mod texthash; /// Nix placeholders (i.e. values returned by `builtins.placeholder`) /// are used to populate outputs with paths that must be -- cgit 1.4.1