1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-30 11:43:15 +02:00

* 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.
This commit is contained in:
Eelco Dolstra 2004-02-11 10:25:31 +00:00
parent 92e832348d
commit 00fe1a506f
3 changed files with 10 additions and 6 deletions

View file

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