From 23871649bb9f79d4a9c27630710f46e6443fe960 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Sun, 14 Apr 2024 00:15:14 +0300 Subject: feat(tvix/nix-compat/path_info): derive Hash for ExportedPathInfo Change-Id: Icd2431f27043f120eee1d156cfcdc9bc85519ead Reviewed-on: https://cl.tvl.fyi/c/depot/+/11412 Reviewed-by: flokli Tested-by: BuildkiteCI --- tvix/nix-compat/src/path_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/nix-compat/src/path_info.rs') diff --git a/tvix/nix-compat/src/path_info.rs b/tvix/nix-compat/src/path_info.rs index bf60f673ce..f289ebde33 100644 --- a/tvix/nix-compat/src/path_info.rs +++ b/tvix/nix-compat/src/path_info.rs @@ -7,7 +7,7 @@ use std::collections::BTreeSet; /// This is not to be confused with the format Nix uses in its `nix path-info` command. /// It includes some more fields, like `registrationTime`, `signatures` and `ultimate`, /// does not include the `closureSize` and encodes `narHash` as SRI. -#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)] +#[derive(Clone, Debug, Eq, PartialEq, Hash, Serialize, Deserialize)] pub struct ExportedPathInfo<'a> { #[serde(rename = "closureSize")] pub closure_size: u64, -- cgit 1.4.1