diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc index f9fd61adde9f10801e96b4638a4b84575739c25f..f0f60d7df1b63065a9a01b362630afb57d77260e 100644 --- a/nix/libstore/build.cc +++ b/nix/libstore/build.cc @@ -1717,7 +1717,7 @@ void DerivationGoal::startBuilder() /* In a sandbox, for determinism, always use the same temporary directory. */ - tmpDirInSandbox = useChroot ? "/tmp/guix-build-" + drvName + "-0" : tmpDir; + tmpDirInSandbox = useChroot ? canonPath("/tmp/guix-build-", true) + drvName + "-0" : tmpDir; /* For convenience, set an environment pointing to the top build directory. */