snix/tvix/nix-compat/src/derivation
Florian Klink ef8a8af0bf refactor(tvix/nix-compat): cleanup parse_{ca,hash} and fmt structs
These were used to format to and parse from strings.

Move this to the CAHash and NixHash structs directly, and be explicit in
the name about which encoding for digests is used.

For output path calculation, nix encodes the nixpaths in hex, but for
writing out NARInfos, it's using nixbase32.

Change-Id: Ia585a76a3811b2609e7ce259fda66a29403b7e07
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10079
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
2023-11-22 17:54:59 +00:00
..
tests refactor(tvix/nix-compat): cleanup parse_{ca,hash} and fmt structs 2023-11-22 17:54:59 +00:00
errors.rs refactor(tvix/glue): move builtins into separate directory 2023-11-04 15:20:46 +00:00
mod.rs refactor(tvix/nix-compat): cleanup parse_{ca,hash} and fmt structs 2023-11-22 17:54:59 +00:00
output.rs refactor(tvix/nix-compat): rename NixHashWithMode -> CAHash 2023-10-23 14:57:32 +00:00
parse_error.rs fix(nix-compat/derivation): handle dups 2023-10-16 12:23:00 +00:00
parser.rs refactor(tvix/nix-compat): check presence with btree_map's entry API 2023-11-05 20:28:37 +00:00
validate.rs fix(tvix/nix-compat): don't box CAHash::Text 2023-10-27 12:18:23 +00:00
write.rs refactor(tvix/nix-compat): rename NixHashWithMode -> CAHash 2023-10-23 14:57:32 +00:00