diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-30 16:19:07 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-10-30 18:47:43 +0100 |
commit | be5d3a59dd3684ffabf456728938ed0f6f3df59c (patch) | |
tree | 89c508fe9c473c39290ead110b70e89a1d88d61d /lib/options.nix | |
parent | 0f8b1b1a5c52a8171d9028e1df74949aea264c72 (diff) |
Clean up some option examples
Diffstat (limited to 'lib/options.nix')
-rw-r--r-- | lib/options.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/options.nix b/lib/options.nix index d1a161cf7633..63798c4faa3b 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; |