Allow options to be marked as "internal"

This means they're not for end users.  Currently they're filtered from
the manual, but we could include them in a separate section.
This commit is contained in:
Eelco Dolstra
2013-10-23 16:59:33 +02:00
parent e29b51bfb1
commit 29014a47fb
6 changed files with 13 additions and 3 deletions

View File

@@ -275,6 +275,7 @@ rec {
description = opt.description or (throw "Option ${opt.name}: No description.");
declarations = map (x: toString x.source) opt.declarations;
#definitions = map (x: toString x.source) opt.definitions;
internal = opt.internal or false;
}
// optionalAttrs (opt ? example) { example = scrubOptionValue opt.example; }
// optionalAttrs (opt ? default) { default = scrubOptionValue opt.default; }