Add --force-name support for --set in nix-env, to support nix-install-package --set
This commit is contained in:
		
							parent
							
								
									9dd54bc7bb
								
							
						
					
					
						commit
						cf72a61af2
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -700,6 +700,9 @@ static void opSet(Globals & globals, Strings opFlags, Strings opArgs) | |||
| 
 | ||||
|     DrvInfo & drv(elems.front()); | ||||
| 
 | ||||
|     if (globals.forceName != "") | ||||
|         drv.name = globals.forceName; | ||||
| 
 | ||||
|     if (drv.queryDrvPath() != "") { | ||||
|         PathSet paths = singleton<PathSet>(drv.queryDrvPath()); | ||||
|         printMissing(*store, paths); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue