mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 14:32:42 +01:00
fetchOrSubstituteTree(): Return an accessor
This prepares lazy access to flake.nix etc.
This commit is contained in:
parent
3c109095de
commit
1ab97a70f5
4 changed files with 54 additions and 19 deletions
|
|
@ -71,7 +71,10 @@ struct FlakeRef
|
|||
const fetchers::Settings & fetchSettings,
|
||||
const fetchers::Attrs & attrs);
|
||||
|
||||
// FIXME: remove
|
||||
std::pair<StorePath, FlakeRef> fetchTree(ref<Store> store) const;
|
||||
|
||||
std::pair<ref<SourceAccessor>, FlakeRef> lazyFetch(ref<Store> store) const;
|
||||
};
|
||||
|
||||
std::ostream & operator << (std::ostream & str, const FlakeRef & flakeRef);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue