diff options
author | regnat <rg@regnat.ovh> | 2020-06-10 11:20:52 +0200 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2020-06-24 20:38:40 +0200 |
commit | d38f860c3ef001a456d4d447f89219de5e3c830c (patch) | |
tree | ba0b6737d8f61094a4084a9613b6b13546df2c9f /src/libstore/path.hh | |
parent | 3c50e84387e51858f10c540e721a938592f30949 (diff) |
Add a way to get all the outputs of a derivation with their label
Generalize `queryDerivationOutputNames` and `queryDerivationOutputs` by
adding a `queryDerivationOutputMap` that returns the map
`outputName=>outputPath`
(not that this is not equivalent to merging the results of
`queryDerivationOutputs` and `queryDerivationOutputNames` as sets don't
preserve the order, so we would end up with an incorrect mapping).
squash! Add a way to get all the outputs of a derivation with their label
Rename StorePathMap to OutputPathMap
Diffstat (limited to 'src/libstore/path.hh')
-rw-r--r-- | src/libstore/path.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/path.hh b/src/libstore/path.hh index 4f79843fe..e43a8b50c 100644 --- a/src/libstore/path.hh +++ b/src/libstore/path.hh @@ -62,6 +62,7 @@ public: typedef std::set<StorePath> StorePathSet; typedef std::vector<StorePath> StorePaths; +typedef std::map<string, StorePath> OutputPathMap; /* Extension of derivations in the Nix store. */ const std::string drvExtension = ".drv"; |