From 52120123a5505199c342afb42f1a48b9cb2628ed Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 22 Dec 2015 17:16:17 +0100 Subject: Handle /tmp being a symlink Hopefully fixes Darwin sandbox regression introduced in 8063fc497ab78fa72962b93874fe25dcca2b55ed. --- src/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 418956feb30e..0fd958846440 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -1765,7 +1765,7 @@ void DerivationGoal::startBuilder() /* In a sandbox, for determinism, always use the same temporary directory. */ - tmpDirInSandbox = useChroot ? "/tmp/nix-build-" + drvName + "-0" : tmpDir; + tmpDirInSandbox = useChroot ? canonPath("/tmp", true) + "/nix-build-" + drvName + "-0" : tmpDir; /* Add all bindings specified in the derivation via the environments, except those listed in the passAsFile -- cgit 1.4.1