diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-05-31T12·00+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-05-31T12·09+0200 |
commit | 44f3f8048fdc2564f25389ec2c613880763bbd03 (patch) | |
tree | e5bdec574e77c9d3eecb393ce9e2e1a1684718cd /src/libstore | |
parent | c740c3ce500af2b7eb34651b5eeec01288d79dca (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/libstore')
-rw-r--r-- | src/libstore/build.cc | 3 |
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 |