diff options
author | Shell Turner <cam.turn@gmail.com> | 2014-09-16T17·34+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-09-23T13·11+0200 |
commit | cf72a61af2975979bbfda773cc17ef617d61cdac (patch) | |
tree | f4366541fb32d3844ae2000a7247bac1257eb727 /src | |
parent | 9dd54bc7bbc404e8e4513b712e0af9ac5b4439bd (diff) |
Add --force-name support for --set in nix-env, to support nix-install-package --set
Diffstat (limited to 'src')
-rw-r--r-- | src/nix-env/nix-env.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc index c24165da8f1d..f5e8ee08c42f 100644 --- a/src/nix-env/nix-env.cc +++ b/src/nix-env/nix-env.cc @@ -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); |