about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-03-27T13·45+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-03-27T13·45+0000
commit329025253d38361ee3d13af0728f99c756c86b7a (patch)
treea54e5ebf1d76af74a06ce9bacf37af61a14f1e5e /src/libstore
parent5bb08db55b57b03608b15f599f0d5d9dbda13d74 (diff)
* 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.

Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index a4f9c469cab2..e6ab6310cd49 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -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. */