From 44f3f8048fdc2564f25389ec2c613880763bbd03 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 31 May 2017 14:00:06 +0200 Subject: [PATCH] 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. --- src/libstore/build.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 8695850b3..7f7d2fdb8 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