3
0
Fork 0
forked from mirrors/nixpkgs

Some diagnostics for NixOS manual helper

svn path=/nixpkgs/trunk/; revision=12756
This commit is contained in:
Michael Raskin 2008-08-27 21:19:03 +00:00
parent 042bc846df
commit c406fcf194

View file

@ -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 {} )