diff options
Diffstat (limited to 'src/libstore/derivations.hh')
-rw-r--r-- | src/libstore/derivations.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstore/derivations.hh b/src/libstore/derivations.hh index 7d38e60c0fe6..6b7c3e6ab189 100644 --- a/src/libstore/derivations.hh +++ b/src/libstore/derivations.hh @@ -79,4 +79,13 @@ typedef std::map<Path, Hash> DrvHashes; extern DrvHashes drvHashes; +/* Split a string specifying a derivation and a set of outputs + (/nix/store/hash-foo!out1,out2,...) into the derivation path and + the outputs. */ +typedef std::pair<string, std::set<string> > DrvPathWithOutputs; +DrvPathWithOutputs parseDrvPathWithOutputs(const string & s); + +Path makeDrvPathWithOutputs(const Path & drvPath, std::set<string> outputs); + + } |