summary refs log tree commit diff
path: root/pkgs/lib/options.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2010-06-01 14:24:16 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2010-06-01 14:24:16 +0000
commitbf010ace5575bb8ef0be8ea515dad33ca5b68b7c (patch)
treed352ddfcb067bcc6f0b2da53108fe34db63a6464 /pkgs/lib/options.nix
parenta15da3571f0b361a33466ee0567e8882a7c2c566 (diff)
downloadnixpkgs-bf010ace5575bb8ef0be8ea515dad33ca5b68b7c.tar
nixpkgs-bf010ace5575bb8ef0be8ea515dad33ca5b68b7c.tar.gz
nixpkgs-bf010ace5575bb8ef0be8ea515dad33ca5b68b7c.tar.bz2
nixpkgs-bf010ace5575bb8ef0be8ea515dad33ca5b68b7c.tar.lz
nixpkgs-bf010ace5575bb8ef0be8ea515dad33ca5b68b7c.tar.xz
nixpkgs-bf010ace5575bb8ef0be8ea515dad33ca5b68b7c.tar.zst
nixpkgs-bf010ace5575bb8ef0be8ea515dad33ca5b68b7c.zip
* 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
Diffstat (limited to 'pkgs/lib/options.nix')
-rw-r--r--pkgs/lib/options.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/lib/options.nix b/pkgs/lib/options.nix
index 570be886552..a9d74f2f3fa 100644
--- a/pkgs/lib/options.nix
+++ b/pkgs/lib/options.nix
@@ -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;