about summary refs log tree commit diff
path: root/tvix/eval/src/lib.rs
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2022-10-10T02·57-0400
committergrfn <grfn@gws.fyi>2022-10-10T20·23+0000
commit5e2b44b4161dba88dfd34f3cd649f592c304ae5b (patch)
tree072225a1ad25e4c5c40cc23a370b6d94a653faf8 /tvix/eval/src/lib.rs
parent0e9f5d6890df5820be836cff78622d3f1dcfe155 (diff)
feat(tvix/eval): Add a struct implementing NIX_PATH r/5086
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
Diffstat (limited to 'tvix/eval/src/lib.rs')
-rw-r--r--tvix/eval/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/eval/src/lib.rs b/tvix/eval/src/lib.rs
index b4ffd25854..3c4fe26cd4 100644
--- a/tvix/eval/src/lib.rs
+++ b/tvix/eval/src/lib.rs
@@ -12,6 +12,7 @@ mod value;
 mod vm;
 mod warnings;
 
+mod nix_path;
 #[cfg(test)]
 mod properties;
 #[cfg(test)]