mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
Restore subdir support in registries
Hacky...
This commit is contained in:
parent
890df325c7
commit
d068f9ffff
6 changed files with 60 additions and 31 deletions
|
@ -40,7 +40,8 @@ bool FlakeRef::operator ==(const FlakeRef & other) const
|
|||
|
||||
FlakeRef FlakeRef::resolve(ref<Store> store) const
|
||||
{
|
||||
return FlakeRef(lookupInRegistries(store, input), subdir);
|
||||
auto [input2, extraAttrs] = lookupInRegistries(store, input);
|
||||
return FlakeRef(input2, fetchers::maybeGetStrAttr(extraAttrs, "subdir").value_or(subdir));
|
||||
}
|
||||
|
||||
FlakeRef parseFlakeRef(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue