* 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
				
			
		|  | @ -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. */ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue