Some diagnostics for NixOS manual helper
svn path=/nixpkgs/trunk/; revision=12756
This commit is contained in:
parent
042bc846df
commit
c406fcf194
|
@ -454,7 +454,9 @@ rec {
|
||||||
optionAttrSetToDocList = (l: attrs:
|
optionAttrSetToDocList = (l: attrs:
|
||||||
(if (getAttr ["_type"] "" attrs) == "option" then
|
(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 ? example then {inherit(attrs) example;} else {} )
|
||||||
//(if attrs ? default then {inherit(attrs) default;} else {} )
|
//(if attrs ? default then {inherit(attrs) default;} else {} )
|
||||||
|
|
Loading…
Reference in New Issue