feat(tvix/nix-compat): add nixhash module

This module takes care of parsing various hashes and algorithms.

It will get used to modify derivation output hashes in the next CL.

Change-Id: Idc07c401dbb7510f49883ac02b8379b9a5d930c7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7990
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2023-02-01 00:21:47 +01:00 committed by flokli
parent 366d2c5e92
commit 265dd36b98
2 changed files with 359 additions and 0 deletions

View file

@ -3,6 +3,7 @@ use sha2::{Digest, Sha256};
pub mod derivation;
pub mod nar;
pub mod nixbase32;
pub mod nixhash;
pub mod store_path;
/// Nix placeholders (i.e. values returned by `builtins.placeholder`)