12typedef std::string FlakeId;
47 bool operator==(
const FlakeRef & other)
const;
54 std::string to_string()
const;
56 fetchers::Attrs toAttrs()
const;
58 kj::Promise<Result<FlakeRef>> resolve(
ref<Store> store)
const;
60 static FlakeRef fromAttrs(
const fetchers::Attrs & attrs);
62 kj::Promise<Result<std::pair<fetchers::Tree, FlakeRef>>> fetchTree(
ref<Store> store)
const;
65std::ostream & operator << (std::ostream & str,
const FlakeRef & flakeRef);
67FlakeRef parseFlakeRef(
68 const std::string & url,
69 const std::optional<Path> & baseDir = {},
70 bool allowMissing =
false,
73std::optional<FlakeRef> maybeParseFlake(
74 const std::string & url,
const std::optional<Path> & baseDir = {});
76std::pair<FlakeRef, std::string> parseFlakeRefWithFragment(
77 const std::string & url,
78 const std::optional<Path> & baseDir = {},
79 bool allowMissing =
false,
82std::optional<std::pair<FlakeRef, std::string>> maybeParseFlakeRefWithFragment(
83 const std::string & url,
const std::optional<Path> & baseDir = {});
85std::tuple<FlakeRef, std::string, ExtendedOutputsSpec> parseFlakeRefWithFragmentAndExtendedOutputsSpec(
86 const std::string & url,
87 const std::optional<Path> & baseDir = {},
88 bool allowMissing =
false,
Definition store-api.hh:195
Definition flakeref.hh:35
Path subdir
Definition flakeref.hh:45
fetchers::Input input
Definition flakeref.hh:40
std::string Path
Definition types.hh:28