diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-03-27T13·45+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-03-27T13·45+0000 |
commit | 329025253d38361ee3d13af0728f99c756c86b7a (patch) | |
tree | a54e5ebf1d76af74a06ce9bacf37af61a14f1e5e /src/libutil/util.hh | |
parent | 5bb08db55b57b03608b15f599f0d5d9dbda13d74 (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 '')
-rw-r--r-- | src/libutil/util.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 657f45ced6e8..d75002b021d3 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -70,7 +70,8 @@ void deletePath(const Path & path, unsigned long long & bytesFreed); void makePathReadOnly(const Path & path); /* Create a temporary directory. */ -Path createTempDir(const Path & tmpRoot = "", const Path & prefix = "nix"); +Path createTempDir(const Path & tmpRoot = "", const Path & prefix = "nix", + bool includePid = true, bool useGlobalCounter = true); /* Create a directory and all its parents, if necessary. Returns the list of created directories, in order of creation. */ |