Add --force-name support for --set in nix-env, to support nix-install-package --set

This commit is contained in:
Shell Turner 2014-09-16 18:34:59 +01:00 committed by Eelco Dolstra
parent 9dd54bc7bb
commit cf72a61af2

View file

@ -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);