summary refs log tree commit diff
path: root/lib/options.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-30 16:19:07 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-30 18:47:43 +0100
commitbe5d3a59dd3684ffabf456728938ed0f6f3df59c (patch)
tree89c508fe9c473c39290ead110b70e89a1d88d61d /lib/options.nix
parent0f8b1b1a5c52a8171d9028e1df74949aea264c72 (diff)
downloadnixpkgs-be5d3a59dd3684ffabf456728938ed0f6f3df59c.tar
nixpkgs-be5d3a59dd3684ffabf456728938ed0f6f3df59c.tar.gz
nixpkgs-be5d3a59dd3684ffabf456728938ed0f6f3df59c.tar.bz2
nixpkgs-be5d3a59dd3684ffabf456728938ed0f6f3df59c.tar.lz
nixpkgs-be5d3a59dd3684ffabf456728938ed0f6f3df59c.tar.xz
nixpkgs-be5d3a59dd3684ffabf456728938ed0f6f3df59c.tar.zst
nixpkgs-be5d3a59dd3684ffabf456728938ed0f6f3df59c.zip
Clean up some option examples
Diffstat (limited to 'lib/options.nix')
-rw-r--r--lib/options.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/options.nix b/lib/options.nix
index d1a161cf763..63798c4faa3 100644
--- a/lib/options.nix
+++ b/lib/options.nix
@@ -98,7 +98,8 @@ rec {
      representation of derivations is very large (on the order of
      megabytes) and is not actually used by the manual generator. */
   scrubOptionValue = x:
-    if isDerivation x then { type = "derivation"; drvPath = x.name; outPath = x.name; name = x.name; }
+    if isDerivation x then
+      { type = "derivation"; drvPath = x.name; outPath = x.name; name = x.name; }
     else if isList x then map scrubOptionValue x
     else if isAttrs x then mapAttrs (n: v: scrubOptionValue v) (removeAttrs x ["_args"])
     else x;