Add --force-name support for --set in nix-env, to support nix-install-package --set
This commit is contained in:
parent
9dd54bc7bb
commit
cf72a61af2
|
@ -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…
Reference in a new issue