aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-06-12 13:04:52 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-06-12 13:04:52 +0200
commit9f736dd89d064718a378703a9557de56fdd1a734 (patch)
treed140339268b209dfea0e6974b685fefc9fcaf87a /src/libstore/store-api.hh
parent045b07200c77bf1fe19c0a986aafb531e7e1ba54 (diff)
Add Store::readDerivation() convenience function
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r--src/libstore/store-api.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index 5ba17e0bc..5ef506326 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -583,6 +583,9 @@ public:
ensurePath(). */
Derivation derivationFromPath(const StorePath & drvPath);
+ /* Read a derivation (which must already be valid). */
+ Derivation readDerivation(const StorePath & drvPath);
+
/* Place in `out' the set of all store paths in the file system
closure of `storePath'; that is, all paths than can be directly
or indirectly reached from it. `out' is not cleared. If