diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2020-03-19 11:24:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-19 11:24:57 +0100 |
commit | 9b3515eb95d9b3bc033f43cd562fe2b14f9efd86 (patch) | |
tree | 4ae6c8b778af7417e60f38c95b5aeff1b50777f4 /lib | |
parent | 883879e974db4082c8d50d4db9874563b3e1b117 (diff) | |
parent | f1956252270ce7d37c39906b892d21969a2e1787 (diff) | |
download | nixlib-9b3515eb95d9b3bc033f43cd562fe2b14f9efd86.tar nixlib-9b3515eb95d9b3bc033f43cd562fe2b14f9efd86.tar.gz nixlib-9b3515eb95d9b3bc033f43cd562fe2b14f9efd86.tar.bz2 nixlib-9b3515eb95d9b3bc033f43cd562fe2b14f9efd86.tar.lz nixlib-9b3515eb95d9b3bc033f43cd562fe2b14f9efd86.tar.xz nixlib-9b3515eb95d9b3bc033f43cd562fe2b14f9efd86.tar.zst nixlib-9b3515eb95d9b3bc033f43cd562fe2b14f9efd86.zip |
Merge pull request #82897 from Infinisil/fix-recursive-visible-docs
lib/options: Only recurse into visible sub options
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 e5c0631a5437..71481c9250ab 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -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 |