tvl-depot/tvix/nix-compat/src/derivation
Florian Klink 905a79308e refactor(nix-compat/derivation): emphasize aterm_bytes
derivation_or_fod_hash constructs ATerm bytes and feeds them to sha256.

input_derivations being slightly modified is an implementation detail,
so move the BTreeMap construction inline, and have aterm_bytes in a
let binding (and feed it to the hash function directly while
constructing it).

This makes it a bit more understandable what's going on.

Change-Id: I2f5cfbd1c964fd39ac731ca39e76cfc168f4c7d7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11147
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: John Ericson <git@johnericson.me>
2024-03-14 23:10:54 +00:00
..
tests refactor(nix-compat/store_path): take [u8;32] for outer fingerprint 2024-03-14 16:52:42 +00:00
errors.rs feat(tvix/nix-compat): Use StorePath in Output 2024-02-21 11:38:03 +00:00
mod.rs refactor(nix-compat/derivation): emphasize aterm_bytes 2024-03-14 23:10:54 +00:00
output.rs fix(tvix/nix-compat): Make CAHash deserialize more formats 2024-03-03 13:07:18 +00:00
parse_error.rs feat(tvix/nix-compat): input_sources as StorePath 2024-02-21 11:34:24 +00:00
parser.rs feat(tvix/nix-compat): Use StorePath in Output 2024-02-21 11:38:03 +00:00
validate.rs feat(tvix/nix-compat): Use StorePath in Output 2024-02-21 11:38:03 +00:00
write.rs refactor(nix-compat/store_path): take [u8;32] for outer fingerprint 2024-03-14 16:52:42 +00:00