about summary refs log tree commit diff
path: root/tvix/nix-compat/src
diff options
context:
space:
mode:
authorIlan Joselevich <personal@ilanjoselevich.com>2024-04-13T21·15+0300
committerIlan Joselevich <personal@ilanjoselevich.com>2024-04-13T21·41+0000
commit23871649bb9f79d4a9c27630710f46e6443fe960 (patch)
treef3be1bcee935a768c52d849232b73c2d2a23d4d1 /tvix/nix-compat/src
parentb70e01a4dbf3a4057a38593f6657893a1f9e5120 (diff)
feat(tvix/nix-compat/path_info): derive Hash for ExportedPathInfo r/7911
Change-Id: Icd2431f27043f120eee1d156cfcdc9bc85519ead
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11412
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/nix-compat/src')
-rw-r--r--tvix/nix-compat/src/path_info.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/nix-compat/src/path_info.rs b/tvix/nix-compat/src/path_info.rs
index bf60f673cead..f289ebde338c 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,