1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

Get rid of tmpDirInSandbox variable

This commit is contained in:
Eelco Dolstra 2025-05-26 22:29:08 +02:00
parent c9b55fa3f0
commit 774678b87f
2 changed files with 24 additions and 19 deletions

View file

@ -226,10 +226,13 @@ struct LinuxDerivationBuilder : DerivationBuilderImpl
done directly in the sandbox profile. */
tmpDir = topTmpDir + "/build";
createDir(tmpDir, 0700);
}
Path tmpDirInSandbox() override
{
/* In a sandbox, for determinism, always use the same temporary
directory. */
tmpDirInSandbox = settings.sandboxBuildDir;
return settings.sandboxBuildDir;
}
void prepareSandbox() override