about summary refs log tree commit diff
path: root/src/libexpr/primops.cc
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2018-02-28T11·19-0500
committerShea Levy <shea@shealevy.com>2018-02-28T11·19-0500
commit14ca85688cdd17dfcf4b2bd8c324f21d6f3d1dde (patch)
tree410c56c5e0e0f0a4b9b8d454328e503d5994b3e0 /src/libexpr/primops.cc
parent8a5da93841db745e7254860b00ca1a693fb829c9 (diff)
Actually fix nixDataDir in non-canonical path
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r--src/libexpr/primops.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index db258ea186e1..6778023f506d 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -2236,7 +2236,7 @@ void EvalState::createBaseEnv()
 
     /* Add a wrapper around the derivation primop that computes the
        `drvPath' and `outPath' attributes lazily. */
-    string path = settings.nixDataDir + "/nix/corepkgs/derivation.nix";
+    string path = canonPath(settings.nixDataDir + "/nix/corepkgs/derivation.nix", true);
     sDerivationNix = symbols.create(path);
     evalFile(path, v);
     addConstant("derivation", v);