mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-05 20:11:43 +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
|
||||
# list it returns.
|
||||
stdenvStages ? import ../stdenv
|
||||
|
||||
, # Ignore unexpected args.
|
||||
...
|
||||
} @ args:
|
||||
|
||||
let # Rename the function arguments
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user