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.
This commit is contained in:
Eelco Dolstra 2017-05-31 14:00:06 +02:00
parent c740c3ce50
commit 44f3f8048f

View file

@ -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