mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 21:46:01 +01:00
Cleanup
This commit is contained in:
parent
b270869466
commit
958ec5de56
6 changed files with 19 additions and 29 deletions
|
|
@ -31,17 +31,11 @@ struct FlakeRef
|
|||
|
||||
fetchers::Input::Attrs toAttrs() const;
|
||||
|
||||
/* Check whether this is a "direct" flake reference, that is, not
|
||||
a flake ID, which requires a lookup in the flake registry. */
|
||||
bool isDirect() const;
|
||||
|
||||
/* Check whether this is an "immutable" flake reference, that is,
|
||||
one that contains a commit hash or content hash. */
|
||||
bool isImmutable() const;
|
||||
|
||||
FlakeRef resolve(ref<Store> store) const;
|
||||
|
||||
static FlakeRef fromAttrs(const fetchers::Input::Attrs & attrs);
|
||||
|
||||
std::pair<fetchers::Tree, FlakeRef> fetchTree(ref<Store> store) const;
|
||||
};
|
||||
|
||||
std::ostream & operator << (std::ostream & str, const FlakeRef & flakeRef);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue