nix-store -r: do substitutions in parallel
I.e. when multiple non-derivation arguments are passed to ‘nix-store -r’ to be substituted, do them in parallel.
This commit is contained in:
		
							parent
							
								
									42f5a2fc29
								
							
						
					
					
						commit
						1aba0bf0fa
					
				
					 11 changed files with 30 additions and 25 deletions
				
			
		|  | @ -172,13 +172,15 @@ public: | |||
|        the Nix store. */ | ||||
|     virtual Paths importPaths(bool requireSignature, Source & source) = 0; | ||||
| 
 | ||||
|     /* Ensure that the output paths of the derivation are valid.  If
 | ||||
|     /* For each path, if it's a derivation, build it.  Building a
 | ||||
|        derivation means ensuring that the output paths are valid.  If | ||||
|        they are already valid, this is a no-op.  Otherwise, validity | ||||
|        can be reached in two ways.  First, if the output paths is | ||||
|        substitutable, then build the path that way.  Second, the | ||||
|        output paths can be created by running the builder, after | ||||
|        recursively building any sub-derivations. */ | ||||
|     virtual void buildDerivations(const PathSet & drvPaths) = 0; | ||||
|        recursively building any sub-derivations. For inputs that are | ||||
|        not derivations, substitute them. */ | ||||
|     virtual void buildPaths(const PathSet & paths) = 0; | ||||
| 
 | ||||
|     /* Ensure that a path is valid.  If it is not currently valid, it
 | ||||
|        may be made valid by running a substitute (if defined for the | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue