mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 07:46:21 +02:00
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…
Reference in a new issue