1
0
Fork 0
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:
Eelco Dolstra 2008-03-27 13:45:17 +00:00
parent 5bb08db55b
commit 329025253d
3 changed files with 17 additions and 8 deletions

View file

@ -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. */