about summary refs log tree commit diff
path: root/src/nix-env/profiles.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-02-11T10·25+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-02-11T10·25+0000
commit00fe1a506f045e612b0564ab0b5aff3917e26bd3 (patch)
tree25c2b9fdf93bf9ab9e67e86ff040a2feede23b41 /src/nix-env/profiles.hh
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/profiles.hh')
-rw-r--r--src/nix-env/profiles.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix-env/profiles.hh b/src/nix-env/profiles.hh
index 2ce468dfa837..423134412748 100644
--- a/src/nix-env/profiles.hh
+++ b/src/nix-env/profiles.hh
@@ -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);