diff --git a/lib/customisation.nix b/lib/customisation.nix index 2cce885dde6f..9ce5f1eece3e 100644 --- a/lib/customisation.nix +++ b/lib/customisation.nix @@ -19,7 +19,6 @@ let sortOn take length - filterAttrs head pipe isDerivation @@ -265,6 +264,7 @@ rec { */ callPackageWith = let + filterTrueAttrs = set: removeAttrs set (filter (name: set.${name}) (attrNames set)); makeErrorMessage = autoArgs: fn: args: fargs: arg: let @@ -311,7 +311,7 @@ rec { # wouldn't be passed to it missingArgs = # Filter out arguments that have a default value - filterAttrs (name: value: !value) + filterTrueAttrs # Filter out arguments that would be passed (removeAttrs fargs (attrNames allArgs));