Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
path-with-outputs.hh
Go to the documentation of this file.
1#pragma once
3
4#include "nix/store/path.hh"
6
7namespace nix {
8
9struct StoreDirConfig;
10
20{
21 StorePath path;
22 StringSet outputs;
23
24 std::string to_string(const StoreDirConfig & store) const;
25
26 DerivedPath toDerivedPath() const;
27
28 typedef std::variant<StorePathWithOutputs, StorePath, std::monostate> ParseResult;
29
30 static StorePathWithOutputs::ParseResult tryFromDerivedPath(const DerivedPath &);
31};
32
33std::vector<DerivedPath> toDerivedPaths(const std::vector<StorePathWithOutputs>);
34
35std::pair<std::string_view, StringSet> parsePathWithOutputs(std::string_view s);
36
42StorePathWithOutputs parsePathWithOutputs(const StoreDirConfig & store, std::string_view pathWithOutputs);
43
44class Store;
45
46StorePathWithOutputs followLinksToStorePathWithOutputs(const Store & store, std::string_view pathWithOutputs);
47
48} // namespace nix
Definition path.hh:33
Definition store-api.hh:397
Definition derived-path.hh:238
Definition store-dir-config.hh:29
Definition path-with-outputs.hh:20
std::set< std::string, std::less<> > StringSet
Definition types.hh:45