Fix(introspection): 'lazyAttrsOf' needs to get the same handling as 'attrsOf'
This commit is contained in:
@@ -58,12 +58,15 @@ let
|
|||||||
getPrios { options = submoduleEval.options; }
|
getPrios { options = submoduleEval.options; }
|
||||||
else
|
else
|
||||||
# Nested attrsOf
|
# Nested attrsOf
|
||||||
(lib.optionalAttrs (type.nestedTypes.elemType.name == "attrsOf") (
|
(lib.optionalAttrs
|
||||||
prioPerValue {
|
(type.nestedTypes.elemType.name == "attrsOf" || type.nestedTypes.elemType.name == "lazyAttrsOf")
|
||||||
type = type.nestedTypes.elemType;
|
(
|
||||||
defs = zipDefs defs.${attrName};
|
prioPerValue {
|
||||||
} prioSet.value
|
type = type.nestedTypes.elemType;
|
||||||
))
|
defs = zipDefs defs.${attrName};
|
||||||
|
} prioSet.value
|
||||||
|
)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -79,7 +82,7 @@ let
|
|||||||
in
|
in
|
||||||
if opt ? type && opt.type.name == "submodule" then
|
if opt ? type && opt.type.name == "submodule" then
|
||||||
(prio) // submodulePrios
|
(prio) // submodulePrios
|
||||||
else if opt ? type && opt.type.name == "attrsOf" then
|
else if opt ? type && (opt.type.name == "attrsOf" || opt.type.name == "lazyAttrsOf") then
|
||||||
prio
|
prio
|
||||||
// (prioPerValue {
|
// (prioPerValue {
|
||||||
type = opt.type;
|
type = opt.type;
|
||||||
|
|||||||
Reference in New Issue
Block a user