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;
in if ss != {} then optionAttrSetToDocList' opt.loc ss else [];
in
[ docOption ] ++ subOptions) (collect isOption options);
[ docOption ] ++ optionals docOption.visible subOptions) (collect isOption options);
/* This function recursively removes all derivation attributes from