about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorJude Taylor <me@jude.bio>2015-10-21T21·44-0700
committerJude Taylor <me@jude.bio>2015-10-21T21·44-0700
commit9155fbd38648b0e415a57c9cf3034ea2b21fcb66 (patch)
treeee29eda2477700b9db89e7bc2ac0aafb724d945e /src/libstore
parentaf1218a86abf71595a54860b677dec30d1d53278 (diff)
use nixDataDir instead of appending /share to PREFIX
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 725a82a868fc..93bb2144425f 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -2442,7 +2442,7 @@ void DerivationGoal::runChild()
             /* This has to appear before import statements */
             sandboxProfile += "(version 1)\n";
 
-            sandboxProfile += (format("(import \"%1%/share/nix/sandbox-defaults.sb\")\n") % NIX_PREFIX).str();
+            sandboxProfile += (format("(import \"%1%/nix/sandbox-defaults.sb\")\n") % settings.nixDataDir).str();
 
             /* Violations will go to the syslog if you set this. Unfortunately the destination does not appear to be configurable */
             if (settings.get("darwin-log-sandbox-violations", false)) {