diff options
Diffstat (limited to 'src/libstore/path-with-outputs.hh')
-rw-r--r-- | src/libstore/path-with-outputs.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstore/path-with-outputs.hh b/src/libstore/path-with-outputs.hh index 0e34b5aa1..870cac08e 100644 --- a/src/libstore/path-with-outputs.hh +++ b/src/libstore/path-with-outputs.hh @@ -1,6 +1,9 @@ #pragma once +#include <variant> + #include "path.hh" +#include "buildable.hh" namespace nix { @@ -10,8 +13,14 @@ struct StorePathWithOutputs std::set<std::string> outputs; std::string to_string(const Store & store) const; + + BuildableReq toBuildableReq() const; + + static std::variant<StorePathWithOutputs, StorePath> tryFromBuildableReq(const BuildableReq &); }; +std::vector<BuildableReq> toBuildableReqs(const std::vector<StorePathWithOutputs>); + std::pair<std::string_view, StringSet> parsePathWithOutputs(std::string_view s); class Store; |