From d4d46b9d8a9b7a2b6c160b8633964c64af9e8d01 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 17 Feb 2024 13:19:25 +0700 Subject: feat(nix-compat/derivation): make fod_digest public This will be used inside glue, to populate the CA field. Change-Id: I52350d66ad09c90c4e9f3bc6ea44fba4427f1576 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10946 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: tazjin --- tvix/nix-compat/src/derivation/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix') diff --git a/tvix/nix-compat/src/derivation/mod.rs b/tvix/nix-compat/src/derivation/mod.rs index 5a59d640d65d..b876a215a22f 100644 --- a/tvix/nix-compat/src/derivation/mod.rs +++ b/tvix/nix-compat/src/derivation/mod.rs @@ -129,7 +129,7 @@ impl Derivation { /// TODO: this is kinda the string from [build_ca_path] with a /// [CAHash::Flat], what's fed to `build_store_path_from_fingerprint_parts` /// (except the out_output.path being an empty string) - fn fod_digest(&self) -> Option<[u8; 32]> { + pub fn fod_digest(&self) -> Option<[u8; 32]> { if self.outputs.len() != 1 { return None; } -- cgit 1.4.1