1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-28 21:21:00 +01: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

@ -28,7 +28,8 @@ typedef list<Generation> Generations;
profile, sorted by generation number. */
Generations findGenerations(Path profile, int & curGen);
Path createGeneration(Path profile, Path outPath, Path drvPath);
Path createGeneration(Path profile, Path outPath,
Path drvPath, Path clrPath);
void switchLink(Path link, Path target);