lib/options: Only recurse into visible sub options

(cherry picked from commit f195625227)
This commit is contained in:
Silvan Mosberger
2020-03-19 01:13:27 +01:00
committed by Robert Hensing
parent b2935fbece
commit 970ea9616f

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