tvl-depot/tvix/nix-compat
John Ericson 26c68f8e89 refactor(nix-compat): Properly encapsulate store path construction
Before there was code scattered about (e.g. text hashing module and
derivation output computation) constructing store paths from low level
building blocks --- there was some duplication and it was easy to make
nonsense store paths.

Now, we have roughly the same "safe-ish" ways of constructing them as
C++ Nix, and only those are exposed:

- Make text hashed content-addressed store paths

- Make other content-addressed store paths

- Make input-addressed fixed output hashes

Change-Id: I122a3ee0802b4f45ae386306b95b698991be89c8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8411
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
2023-04-09 15:12:21 +00:00
..
src refactor(nix-compat): Properly encapsulate store path construction 2023-04-09 15:12:21 +00:00
Cargo.toml refactor(tvix/nix-compat): -derivation::Hash, +NixHash 2023-03-15 11:50:12 +00:00
default.nix refactor(tvix): introduce nix-compat crate 2023-01-31 13:26:18 +00:00