diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-09-02 00:40:27 +0200 |
---|---|---|
committer | Silvan Mosberger <contact@infinisil.com> | 2020-11-30 22:51:34 +0100 |
commit | 0b61ed7af920e6248638d7b53d932c0470b9b054 (patch) | |
tree | 90c2e1a8d261b6b95beddf61a9201692a962d6c2 /lib | |
parent | 51e63b550d7ff29c6760e8025dbc7dee64091f0c (diff) |
lib/options: Don't show internal suboption in the manual
Initially https://github.com/NixOS/nixpkgs/pull/82897 prevented non-visible options from being rendered in the manual, but visible-but-internal options were still being recursed into. This fixes this, aligning the recurse condition here with the one in make-options-doc/default.nix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/options.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/options.nix b/lib/options.nix index 87cd8b797969c..5c042a6c6f29e 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -192,7 +192,7 @@ rec { let ss = opt.type.getSubOptions opt.loc; in if ss != {} then optionAttrSetToDocList' opt.loc ss else []; in - [ docOption ] ++ optionals docOption.visible subOptions) (collect isOption options); + [ docOption ] ++ optionals (docOption.visible && ! docOption.internal) subOptions) (collect isOption options); /* This function recursively removes all derivation attributes from |