about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-05-31T12·00+0200
committerEelco Dolstra <edolstra@gmail.com>2017-05-31T12·09+0200
commit44f3f8048fdc2564f25389ec2c613880763bbd03 (patch)
treee5bdec574e77c9d3eecb393ce9e2e1a1684718cd /src
parentc740c3ce500af2b7eb34651b5eeec01288d79dca (diff)
OS X sandbox: Don't use a deterministic $TMPDIR
This doesn't work because the OS X sandbox cannot bind-mount
path to a different location.
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 8695850b3441..7f7d2fdb8bdb 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1732,9 +1732,6 @@ void DerivationGoal::startBuilder()
        directory. */
 #if __linux__
     tmpDirInSandbox = useChroot ? settings.sandboxBuildDir : tmpDir;
-#elif __APPLE__
-    // On Darwin, we canonize /tmp because its probably a symlink to /private/tmp.
-    tmpDirInSandbox = useChroot ? canonPath("/tmp", true) + "/nix-build-" + drvName + "-0" : tmpDir;
 #else
     tmpDirInSandbox = tmpDir;
 #endif