summary refs log tree commit diff
diff options
context:
space:
mode:
-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;