diff --git a/pkgs/top-level/default.nix b/pkgs/top-level/default.nix index 904ef8d39796d..dfa68ba31b841 100644 --- a/pkgs/top-level/default.nix +++ b/pkgs/top-level/default.nix @@ -38,6 +38,9 @@ # environment. See below for the arguments given to that function, the type of # list it returns. stdenvStages ? import ../stdenv + +, # Ignore unexpected args. + ... } @ args: let # Rename the function arguments diff --git a/pkgs/top-level/impure.nix b/pkgs/top-level/impure.nix index 88440f711d363..3ba6c08a140b2 100644 --- a/pkgs/top-level/impure.nix +++ b/pkgs/top-level/impure.nix @@ -81,7 +81,7 @@ in # not be passed. assert args ? localSystem -> !(args ? system || args ? platform); -import ./. (builtins.removeAttrs args [ "system" "platform" "inNixShell" ] // { +import ./. (builtins.removeAttrs args [ "system" "platform" ] // { inherit config overlays crossSystem crossOverlays; # Fallback: Assume we are building packages on the current (build, in GNU # Autotools parlance) system.