* Remove the mysterious `_args' attribute because it screws up the

manual generation (causes `nixos-rebuild build-vm' evaluation to
  fail in the `networking.ifaces' option).

svn path=/nixpkgs/trunk/; revision=22084
This commit is contained in:
Eelco Dolstra 2010-06-01 14:24:16 +00:00
parent a15da3571f
commit bf010ace55

View File

@ -284,7 +284,7 @@ rec {
scrubOptionValue = x:
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) x
else if isAttrs x then mapAttrs (n: v: scrubOptionValue v) (removeAttrs x ["_args"])
else x;