feat(tvix/eval): Add a struct implementing NIX_PATH

Add a simple struct implementing both the string parsing and path
resolution rules of Nix's `NIX_PATH` environment variable, for use in
resolving `<...>`-style paths

Change-Id: Ife75f39aa5c12928278d81fe428fbadc98bac5cc
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6917
Autosubmit: grfn <grfn@gws.fyi>
Reviewed-by: tazjin <tazjin@tvl.su>
Reviewed-by: Adam Joseph <adam@westernsemico.com>
Tested-by: BuildkiteCI
This commit is contained in:
Griffin Smith 2022-10-09 22:57:21 -04:00 committed by grfn
parent 0e9f5d6890
commit 5e2b44b416
2 changed files with 208 additions and 0 deletions

View file

@ -12,6 +12,7 @@ mod value;
mod vm;
mod warnings;
mod nix_path;
#[cfg(test)]
mod properties;
#[cfg(test)]