diff --git a/pkgs/lib/options.nix b/pkgs/lib/options.nix index 570be886552f..a9d74f2f3fac 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;