aboutsummaryrefslogtreecommitdiff
path: root/src/nix-env/main.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-02-11 10:25:31 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-02-11 10:25:31 +0000
commit00fe1a506f045e612b0564ab0b5aff3917e26bd3 (patch)
tree25c2b9fdf93bf9ab9e67e86ff040a2feede23b41 /src/nix-env/main.cc
parent92e832348db13637875c4f529ed0aa83d3d34493 (diff)
* When creating a new generation, also make the normal form of the
derivation (i.e., the closure store expression) a root of the garbage collector. This ensures that running `nix-collect-garbage --no-successors' is safe.
Diffstat (limited to 'src/nix-env/main.cc')
-rw-r--r--src/nix-env/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc
index 673d1b2be..07a49a122 100644
--- a/src/nix-env/main.cc
+++ b/src/nix-env/main.cc
@@ -196,7 +196,7 @@ void createUserEnv(EvalState & state, const DrvInfos & drvs,
/* Switch the current user environment to the output path. */
debug(format("switching to new user environment"));
Path generation = createGeneration(profile,
- topLevelDrv.outPath, topLevelDrv.drvPath);
+ topLevelDrv.outPath, topLevelDrv.drvPath, nfPath);
switchLink(profile, generation);
}