diff --git a/pkgs/lib/default.nix b/pkgs/lib/default.nix index cf0732ef8681..2f87de0cd0c6 100644 --- a/pkgs/lib/default.nix +++ b/pkgs/lib/default.nix @@ -454,7 +454,9 @@ rec { optionAttrSetToDocList = (l: attrs: (if (getAttr ["_type"] "" attrs) == "option" then [({ - inherit (attrs) description; + #inherit (attrs) description; + description = if attrs ? description then attrs.description else + throw ("No description ${toString l}"); } //(if attrs ? example then {inherit(attrs) example;} else {} ) //(if attrs ? default then {inherit(attrs) default;} else {} )