mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
lib/modules.nix: Rename defnsByName -> pushedDownDefinitionsByName
This commit is contained in:
parent
448b153f81
commit
c28dd7d921
@ -557,7 +557,7 @@ let
|
||||
subtree
|
||||
) options);
|
||||
# an attrset 'name' => list of submodules that define ‘name’.
|
||||
defnsByName =
|
||||
pushedDownDefinitionsByName =
|
||||
zipAttrsWith (n: concatLists)
|
||||
(map (module: let subtree = module.config; in
|
||||
if !(builtins.isAttrs subtree) then
|
||||
@ -619,7 +619,7 @@ let
|
||||
# We're descending into attribute ‘name’.
|
||||
let
|
||||
loc = prefix ++ [name];
|
||||
defns = defnsByName.${name} or [];
|
||||
defns = pushedDownDefinitionsByName.${name} or [];
|
||||
defns' = rawDefinitionsByName.${name} or [];
|
||||
optionDecls = filter (m: isOption m.options) decls;
|
||||
in
|
||||
|
Loading…
Reference in New Issue
Block a user