mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +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
|
@ -42,9 +42,11 @@ MixEvalArgs::MixEvalArgs()
|
|||
.description("override a flake registry value")
|
||||
.arity(2)
|
||||
.handler([&](std::vector<std::string> ss) {
|
||||
fetchers::overrideRegistry(
|
||||
parseFlakeRef(ss[0], absPath(".")).input,
|
||||
parseFlakeRef(ss[1], absPath(".")).input);
|
||||
auto from = parseFlakeRef(ss[0], absPath("."));
|
||||
auto to = parseFlakeRef(ss[1], absPath("."));
|
||||
fetchers::Input::Attrs extraAttrs;
|
||||
if (to.subdir != "") extraAttrs["subdir"] = to.subdir;
|
||||
fetchers::overrideRegistry(from.input, to.input, extraAttrs);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue