about summary refs log tree commit diff
path: root/src/libexpr/eval.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2011-08-06T18·23+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2011-08-06T18·23+0000
commit07340b8be742e08f1a000475eb1f389d5525d6c8 (patch)
tree8a8b8f93bb91d1786807de1b87638688a9f4e3c9 /src/libexpr/eval.cc
parentc7101dac0bd2631e50846194fc841ef5ef77461f (diff)
* Add the Nix corepkgs to the end of the search path. This makes it
  possible for other Nix expressions to use corepkgs (mostly useful
  for the buildenv function).

Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r--src/libexpr/eval.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 674fa96f0b..ed5486f5bd 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -186,6 +186,8 @@ EvalState::EvalState()
     searchPathInsertionPoint = searchPath.end();
     Strings paths = tokenizeString(getEnv("NIX_PATH", ""), ":");
     foreach (Strings::iterator, i, paths) addToSearchPath(*i);
+    printMsg(lvlError, nixDataDir);
+    addToSearchPath("nix=" + nixDataDir + "/nix/corepkgs");
     searchPathInsertionPoint = searchPath.begin();
 }