tvl-depot/tvix/nix-compat/src
Florian Klink 5f2c2e79e1 refactor(tvix/nix-compat): move build_store_path out of derivation
This doesn't have anything to do with ATerms, we just happen to be using
the aterm representation of a Derivation as contents.

Moving this into store_path/utils.rs makes these things much cleaner -
Have a build_store_path_from_references function, and a
build_store_path_from_fingerprint helper function that makes use of it.

build_store_path_from_references is invoked from the derivation module
which can be used to calculate the derivation path.

In the derivation module, we also invoke
build_store_path_from_fingerprint during the output path calculation.

Change-Id: Ia8d61a5e8e5d3f396f93593676ed3f5d1a3f1d66
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8367
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
2023-03-30 14:03:35 +00:00
..
derivation refactor(tvix/nix-compat): move build_store_path out of derivation 2023-03-30 14:03:35 +00:00
nar refactor(tvix/nix-compat): absorb nar writer 2023-01-31 15:18:39 +00:00
store_path refactor(tvix/nix-compat): move build_store_path out of derivation 2023-03-30 14:03:35 +00:00
lib.rs refactor(tvix/nix-compat): move build_store_path out of derivation 2023-03-30 14:03:35 +00:00
nixbase32.rs refactor(tvix/nix-compat): address clippy in nixbase32.rs tests 2023-03-04 12:21:28 +00:00
nixhash.rs refactor(tvix/nix-compat): move HashAlgo to separate file 2023-03-30 13:47:31 +00:00
nixhash_algos.rs refactor(tvix/nix-compat): move HashAlgo to separate file 2023-03-30 13:47:31 +00:00
nixhash_with_mode.rs refactor(tvix/nix-compat): move NixHashWithMode into separate file 2023-03-30 13:47:31 +00:00
texthash.rs refactor(tvix/nix-compat): add text_hash_string function 2023-03-30 14:03:34 +00:00