about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2010-08-11 11:46:09 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2010-08-11 11:46:09 +0000
commit415cf4cd1c03bbae153061913d61c81177a4ad11 (patch)
treee9a706cd8acba8d39321fec993351bf8d530d67c /pkgs
parente4686546ecc4175712a50e6da4b659a8b86949ef (diff)
downloadnixlib-415cf4cd1c03bbae153061913d61c81177a4ad11.tar
nixlib-415cf4cd1c03bbae153061913d61c81177a4ad11.tar.gz
nixlib-415cf4cd1c03bbae153061913d61c81177a4ad11.tar.bz2
nixlib-415cf4cd1c03bbae153061913d61c81177a4ad11.tar.lz
nixlib-415cf4cd1c03bbae153061913d61c81177a4ad11.tar.xz
nixlib-415cf4cd1c03bbae153061913d61c81177a4ad11.tar.zst
nixlib-415cf4cd1c03bbae153061913d61c81177a4ad11.zip
* 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
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/lib/modules.nix1
-rw-r--r--pkgs/lib/options.nix2
2 files changed, 1 insertions, 2 deletions
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; }