diff --git a/tvix/eval/src/lib.rs b/tvix/eval/src/lib.rs index 9c298df60..8ce37de42 100644 --- a/tvix/eval/src/lib.rs +++ b/tvix/eval/src/lib.rs @@ -171,6 +171,12 @@ impl<'co, 'ro> Evaluation<'co, 'ro, Box> { self.io_handle = io.unwrap_or_else(|| Box::new(StdIO) as Box); self.enable_import = true; self.builtins.extend(builtins::impure_builtins()); + + // Make `NIX_PATH` resolutions work by default, unless the + // user already overrode this with something else. + if self.nix_path.is_none() { + self.nix_path = std::env::var("NIX_PATH").ok(); + } } #[cfg(feature = "impure")]