about summary refs log tree commit diff
path: root/src/libstore/store-api.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-01-25T16·04+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-01-25T16·04+0000
commit5388944e8d1ca61e23d42a6a0769b925f099f4e1 (patch)
tree9f6c90aeea01d8ad1cc99102a27751de7d409912 /src/libstore/store-api.hh
parentf0c0277970f8283428b599d8da8089756583a26c (diff)
* Make the garbage collector do the right thing when `gc-keep-outputs'
  is enabled by not depending on the deriver.

Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r--src/libstore/store-api.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index 101215707f37..8506d47e36a7 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -243,6 +243,12 @@ void checkStoreName(const string & name);
 Path toStorePath(const Path & path);
 
 
+/* Get the "name" part of a store path, that is, the part after the
+   hash and the dash, and with any ".drv" suffix removed
+   (e.g. /nix/store/<hash>-foo-1.2.3.drv => foo-1.2.3). */
+string getNameOfStorePath(const Path & path);
+
+
 /* Follow symlinks until we end up with a path in the Nix store. */
 Path followLinksToStore(const Path & path);