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:
parent
92e832348d
commit
00fe1a506f
3 changed files with 10 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue