mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-07 05:51:24 +03:00
Merge pull request #99316 from cole-h/fix-nix-shell-and-borg
top-level: ignore unexpected args
This commit is contained in:
commit
1781e11061
@ -38,6 +38,9 @@
|
|||||||
# environment. See below for the arguments given to that function, the type of
|
# environment. See below for the arguments given to that function, the type of
|
||||||
# list it returns.
|
# list it returns.
|
||||||
stdenvStages ? import ../stdenv
|
stdenvStages ? import ../stdenv
|
||||||
|
|
||||||
|
, # Ignore unexpected args.
|
||||||
|
...
|
||||||
} @ args:
|
} @ args:
|
||||||
|
|
||||||
let # Rename the function arguments
|
let # Rename the function arguments
|
||||||
|
@ -81,7 +81,7 @@ in
|
|||||||
# not be passed.
|
# not be passed.
|
||||||
assert args ? localSystem -> !(args ? system || args ? platform);
|
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;
|
inherit config overlays crossSystem crossOverlays;
|
||||||
# Fallback: Assume we are building packages on the current (build, in GNU
|
# Fallback: Assume we are building packages on the current (build, in GNU
|
||||||
# Autotools parlance) system.
|
# Autotools parlance) system.
|
||||||
|
Loading…
Reference in New Issue
Block a user