about summary refs log tree commit diff
path: root/src/nix-env/main.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-11-22T15·58+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-11-22T15·58+0000
commit40d9eb14dfb842c51e9f86818b43ae7711e1a5d6 (patch)
treebf7f5cbee76a95e72682c5f65baecad4d6173ce0 /src/nix-env/main.cc
parent7a02d954186d6ba1ea41d9917d63f9fab84736b3 (diff)
* Fix the garbage collector.
Diffstat (limited to 'src/nix-env/main.cc')
-rw-r--r--src/nix-env/main.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc
index 73166964fe9b..a8377582ca49 100644
--- a/src/nix-env/main.cc
+++ b/src/nix-env/main.cc
@@ -139,6 +139,8 @@ Path createLink(Path outPath, Path drvPath)
         num++;
     }
 
+    writeStringToFile(linkPath + "-src.id", drvPath);
+
     return linkPath;
 }
 
@@ -290,7 +292,7 @@ void uninstallDerivations(EvalState & state, Strings drvNames)
             installedDrvs.erase(j->second);
     }
 
-   createUserEnv(state, installedDrvs);
+    createUserEnv(state, installedDrvs);
 }