mirror of
https://github.com/NixOS/nix
synced 2025-07-01 12:37:59 +02:00
* Use /tmp/nix-build-<drvpath>-<counter> instead of
/tmp/nix-<pid>-<counter> for temporary build directories. This increases purity a bit: many packages store the temporary build path in their output, causing (generally unimportant) binary differences.
This commit is contained in:
parent
5bb08db55b
commit
329025253d
3 changed files with 17 additions and 8 deletions
|
@ -1568,7 +1568,7 @@ void DerivationGoal::startBuilder()
|
|||
|
||||
/* Create a temporary directory where the build will take
|
||||
place. */
|
||||
tmpDir = createTempDir();
|
||||
tmpDir = createTempDir("", "nix-build-" + baseNameOf(drvPath), false, false);
|
||||
|
||||
/* For convenience, set an environment pointing to the top build
|
||||
directory. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue