Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
path-with-outputs.hh
Go to the documentation of this file.
1#pragma once
3
6
7namespace nix {
8
18{
19 StorePath path;
20 std::set<std::string> outputs = {};
21
22 std::string to_string(const Store & store) const;
23
24 DerivedPath toDerivedPath() const;
25
26 typedef std::variant<StorePathWithOutputs, StorePath, std::monostate> ParseResult;
27
28 static StorePathWithOutputs::ParseResult tryFromDerivedPath(const DerivedPath &);
29};
30
31std::vector<DerivedPath> toDerivedPaths(const std::vector<StorePathWithOutputs>);
32
33std::pair<std::string_view, StringSet> parsePathWithOutputs(std::string_view s);
34
35class Store;
36
42StorePathWithOutputs parsePathWithOutputs(const Store & store, std::string_view pathWithOutputs);
43
44StorePathWithOutputs followLinksToStorePathWithOutputs(const Store & store, std::string_view pathWithOutputs);
45
46}
Definition path.hh:21
Definition store-api.hh:195
Definition derived-path.hh:225
Definition path-with-outputs.hh:18