From 415cf4cd1c03bbae153061913d61c81177a4ad11 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 11 Aug 2010 11:46:09 +0000 Subject: * Omit the "Defined by:" elements in the configuration.nix section of the manual. While it's a useful feature, it has the unfortunate side-effect of causing the manual to be rebuilt every time the user adds an option definition to any module (including configuration.nix), and rebuilding the manual is rather slow. svn path=/nixpkgs/trunk/; revision=23110 --- pkgs/lib/modules.nix | 1 - pkgs/lib/options.nix | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'pkgs') diff --git a/pkgs/lib/modules.nix b/pkgs/lib/modules.nix index 6457fd14eb59..4af87ec68448 100644 --- a/pkgs/lib/modules.nix +++ b/pkgs/lib/modules.nix @@ -259,7 +259,6 @@ rec { value = m.config; }) definitions; - values = values_ ++ optionals (option.isOption && option.decl ? extraConfigs) option.decl.extraConfigs; diff --git a/pkgs/lib/options.nix b/pkgs/lib/options.nix index a9d74f2f3fac..d742544bef2a 100644 --- a/pkgs/lib/options.nix +++ b/pkgs/lib/options.nix @@ -260,7 +260,7 @@ rec { throw "Option ${opt.name}: No description."; declarations = map (x: toString x.source) opt.declarations; - definitions = map (x: toString x.source) opt.definitions; + #definitions = map (x: toString x.source) opt.definitions; } // optionalAttrs (opt ? example) { example = scrubOptionValue opt.example; } // optionalAttrs (opt ? default) { default = scrubOptionValue opt.default; } -- cgit 1.4.1