Add a currentOutput attribute to derivations keep track of which output is active
This commit is contained in:
		
							parent
							
								
									8f28a3ba25
								
							
						
					
					
						commit
						f3e410d4bf
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -1114,7 +1114,10 @@ void EvalState::createBaseEnv() | |||
|           let outPath = builtins.getAttr (output + \"Path\") strict; in { \
 | ||||
|             name = output; \ | ||||
|             value = attrs // { \ | ||||
|               drvPath = strict.drvPath; inherit outPath; type = \"derivation\"; \
 | ||||
|               drvPath = strict.drvPath; \ | ||||
|               inherit outPath; \ | ||||
|               type = \"derivation\"; \
 | ||||
|               currentOutput = output; \ | ||||
|             } // outputsAttrs // { all = allList; }; \ | ||||
|           }; \ | ||||
|         outputsList = if attrs ? outputs then \ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue