tvl-depot/tvix/nix-compat
Florian Klink 67c9e2c770 feat(tvix/nix-compat): introduce parsing for Nix Hash strings
We ironically didn't add support parsing for the "native" format that
Nix uses under the hood.

This extends the from_str method to peek at the prefix of the string to
determine whether to try decoding as SRI, Nix string, or whether it
should be a bare digest.

Change-Id: I33efd24968b16f86eff18305b4ca8f112c7131d7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8216
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
2023-03-04 12:26:00 +00:00
..
src feat(tvix/nix-compat): introduce parsing for Nix Hash strings 2023-03-04 12:26:00 +00:00
Cargo.toml refactor(tvix/nix-compat): absorb //tvix/derivation 2023-01-31 15:16:39 +00:00
default.nix refactor(tvix): introduce nix-compat crate 2023-01-31 13:26:18 +00:00