[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
226/376: Add --force-name support for --set in nix-env, to support nix-i
From: |
Ludovic Courtès |
Subject: |
226/376: Add --force-name support for --set in nix-env, to support nix-install-package --set |
Date: |
Wed, 28 Jan 2015 22:05:14 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit cf72a61af2975979bbfda773cc17ef617d61cdac
Author: Shell Turner <address@hidden>
Date: Tue Sep 16 18:34:59 2014 +0100
Add --force-name support for --set in nix-env, to support
nix-install-package --set
---
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 c24165d..f5e8ee0 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);
- 212/376: attrNames: Don't allocate duplicates of the symbols, (continued)
- 212/376: attrNames: Don't allocate duplicates of the symbols, Ludovic Courtès, 2015/01/28
- 216/376: Handle cycles when printing a value, Ludovic Courtès, 2015/01/28
- 211/376: Fix off-by-one, Ludovic Courtès, 2015/01/28
- 215/376: Add ‘seq’ primop, Ludovic Courtès, 2015/01/28
- 209/376: Store Attrs inside Bindings, Ludovic Courtès, 2015/01/28
- 208/376: Remove bogus comment, Ludovic Courtès, 2015/01/28
- 219/376: Add ‘deepSeq’ primop, Ludovic Courtès, 2015/01/28
- 225/376: Pass through --set from nix-install-package command line to nix-env, Ludovic Courtès, 2015/01/28
- 214/376: Add a function ‘valueSize’, Ludovic Courtès, 2015/01/28
- 145/376: Use proper quotes everywhere, Ludovic Courtès, 2015/01/28
- 226/376: Add --force-name support for --set in nix-env, to support nix-install-package --set,
Ludovic Courtès <=
- 220/376: Don't evaluate inside a "throw", Ludovic Courtès, 2015/01/28
- 217/376: Rename strictForceValue -> forceValueDeep, Ludovic Courtès, 2015/01/28
- 227/376: Updated documentation for nix-install-package to mention --set flag, Ludovic Courtès, 2015/01/28
- 228/376: Fix use of PAGER during tests, Ludovic Courtès, 2015/01/28
- 221/376: Remove release notes Hydra product, Ludovic Courtès, 2015/01/28
- 218/376: Make forceValueDeep work on values with cycles, Ludovic Courtès, 2015/01/28
- 229/376: Remove bash requirement, Ludovic Courtès, 2015/01/28
- 231/376: nix-daemon: Close unnecessary fd, Ludovic Courtès, 2015/01/28
- 230/376: Bindings: Remove copy constructor, Ludovic Courtès, 2015/01/28
- 222/376: Add missing static, Ludovic Courtès, 2015/01/28