about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/build.cc')
-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