diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-23 16:59:33 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-23 20:08:21 +0200 |
commit | 29014a47fb9302e8b86d4cd6698298a50e8f3b25 (patch) | |
tree | 9697d2f00fb04958f83937007a3c2b8428931e2b /lib | |
parent | e29b51bfb1eefe2f8d2dcac4fba8ea734115804c (diff) | |
download | nixlib-29014a47fb9302e8b86d4cd6698298a50e8f3b25.tar nixlib-29014a47fb9302e8b86d4cd6698298a50e8f3b25.tar.gz nixlib-29014a47fb9302e8b86d4cd6698298a50e8f3b25.tar.bz2 nixlib-29014a47fb9302e8b86d4cd6698298a50e8f3b25.tar.lz nixlib-29014a47fb9302e8b86d4cd6698298a50e8f3b25.tar.xz nixlib-29014a47fb9302e8b86d4cd6698298a50e8f3b25.tar.zst nixlib-29014a47fb9302e8b86d4cd6698298a50e8f3b25.zip |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/options.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/options.nix b/lib/options.nix index a91115287e45..20ffc61c1ad1 100644 --- a/lib/options.nix +++ b/lib/options.nix @@ -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; } |