about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-11-22T21·12+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-11-22T21·12+0000
commitaf7e6fe22e8db606eb92c044140c00e6d8fe61cc (patch)
treec1c6bb78c89b33e40bf1a6eb653d3c8db3ac6841 /src
parent9486dda1152d18b502fc31ff1d6aed4eba6f2fe3 (diff)
* Don't use a hard-coded path.
Diffstat (limited to 'src')
-rw-r--r--src/nix-env/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc
index a8377582ca49..b3c38616ec2f 100644
--- a/src/nix-env/main.cc
+++ b/src/nix-env/main.cc
@@ -164,7 +164,7 @@ void switchLink(Path link, Path target)
 void createUserEnv(EvalState & state, const DrvInfos & drvs)
 {
     /* Get the environment builder expression. */
-    Expr envBuilder = parseExprFromFile("/home/eelco/nix/corepkgs/buildenv"); /* !!! */
+    Expr envBuilder = parseExprFromFile(nixDataDir + "/nix/corepkgs/buildenv"); /* !!! */
 
     /* Construct the whole top level derivation. */
     ATermList inputs = ATempty;