Pass configuration settings to the substituters
Previously substituters could read nix.conf themselves, but this didn't take --option flags into account.
This commit is contained in:
		
							parent
							
								
									f9613da180
								
							
						
					
					
						commit
						d059bf48e4
					
				
					 5 changed files with 37 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -2494,6 +2494,10 @@ void SubstitutionGoal::tryToRun()
 | 
			
		|||
            outPipe.readSide.close();
 | 
			
		||||
            outPipe.writeSide.close();
 | 
			
		||||
 | 
			
		||||
            /* Pass configuration options (including those overriden
 | 
			
		||||
               with --option) to the substituter. */
 | 
			
		||||
            setenv("_NIX_OPTIONS", packSettings().c_str(), 1);
 | 
			
		||||
 | 
			
		||||
            /* Fill in the arguments. */
 | 
			
		||||
            Strings args;
 | 
			
		||||
            args.push_back(baseNameOf(sub));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue