From 329025253d38361ee3d13af0728f99c756c86b7a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 27 Mar 2008 13:45:17 +0000 Subject: * Use /tmp/nix-build-- instead of /tmp/nix-- for temporary build directories. This increases purity a bit: many packages store the temporary build path in their output, causing (generally unimportant) binary differences. --- src/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstore/build.cc') diff --git a/src/libstore/build.cc b/src/libstore/build.cc index a4f9c469ca..e6ab6310cd 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. */ -- cgit 1.4.1