snix/tvix/nix-compat/src/derivation
Florian Klink 09b30f895a refactor(tvix/nix-compat): simplify fingerprint calculation
Instead of having two very similar match branches for the FOD and non-
FOD case, detect the FOD case while looping over all outputs.

In the case of anything other than recursive sha256 FODs, the
fingerprint and output path calculation is exactly the same.

Change-Id: Ieb6995653d008766e595cf29d7cd4fb1334e33dd
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8310
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
2023-03-15 14:02:24 +00:00
..
tests refactor(tvix/nix-compat): -derivation::Hash, +NixHash 2023-03-15 11:50:12 +00:00
errors.rs docs(tvix/nix-compat/derivation): fix docstrings 2023-01-31 15:16:40 +00:00
mod.rs refactor(tvix/nix-compat): simplify fingerprint calculation 2023-03-15 14:02:24 +00:00
output.rs refactor(tvix/nix-compat): -derivation::Hash, +NixHash 2023-03-15 11:50:12 +00:00
string_escape.rs refactor(tvix/nix-compat): absorb //tvix/derivation 2023-01-31 15:16:39 +00:00
utils.rs feat(tvix/nix-compat/derivation): make use of NixPath in some places 2023-03-04 12:26:00 +00:00
validate.rs refactor(tvix/derivation): don't create deref'd immediately ref 2023-02-01 13:38:21 +00:00
write.rs refactor(tvix/nix-compat): -derivation::Hash, +NixHash 2023-03-15 11:50:12 +00:00