lib/options: Only recurse into visible sub options

This commit is contained in:
Silvan Mosberger 2020-03-19 01:13:27 +01:00
parent a503bd01e7
commit f195625227
No known key found for this signature in database
GPG Key ID: E8F1E9EAD284E17D

View File

@ -159,7 +159,7 @@ rec {
let ss = opt.type.getSubOptions opt.loc; let ss = opt.type.getSubOptions opt.loc;
in if ss != {} then optionAttrSetToDocList' opt.loc ss else []; in if ss != {} then optionAttrSetToDocList' opt.loc ss else [];
in in
[ docOption ] ++ subOptions) (collect isOption options); [ docOption ] ++ optionals docOption.visible subOptions) (collect isOption options);
/* This function recursively removes all derivation attributes from /* This function recursively removes all derivation attributes from