Nix 2.26.3
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 "path.hh"
5#include "derived-path.hh"
6
7namespace nix {
8
9struct StoreDirConfig;
10
20{
21 StorePath path;
22 std::set<std::string> 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}
Definition path.hh:27
Definition store-api.hh:169
ChunkedVector< std::string, 8192 > store
Definition lexer.l:1011
return s
Definition lexer.l:459
Definition derived-path.hh:229
Definition store-dir-config.hh:22
Definition path-with-outputs.hh:20