mirror of
https://github.com/NixOS/nix.git
synced 2025-11-29 13:41:00 +01:00
Set lockedRef correctly
This commit is contained in:
parent
885a09c3fa
commit
ad4b7669db
3 changed files with 12 additions and 3 deletions
|
|
@ -238,6 +238,12 @@ std::pair<fetchers::Tree, FlakeRef> FlakeRef::fetchTree(ref<Store> store) const
|
|||
return {std::move(tree), FlakeRef(std::move(lockedInput), subdir)};
|
||||
}
|
||||
|
||||
std::pair<ref<InputAccessor>, FlakeRef> FlakeRef::lazyFetch(ref<Store> store) const
|
||||
{
|
||||
auto [accessor, lockedInput] = input.lazyFetch(store);
|
||||
return {accessor, FlakeRef(std::move(lockedInput), subdir)};
|
||||
}
|
||||
|
||||
std::tuple<FlakeRef, std::string, OutputsSpec> parseFlakeRefWithFragmentAndOutputsSpec(
|
||||
const std::string & url,
|
||||
const std::optional<Path> & baseDir,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue