impure.nix: add crossSystem as arg
This commit is contained in:
parent
e57bcc7106
commit
5c7815a388
@ -22,6 +22,7 @@ in
|
|||||||
# with unnamed parameters allowed by ...
|
# with unnamed parameters allowed by ...
|
||||||
system ? localSystem.system
|
system ? localSystem.system
|
||||||
, platform ? localSystem.platform
|
, platform ? localSystem.platform
|
||||||
|
, crossSystem ? null
|
||||||
|
|
||||||
, # Fallback: The contents of the configuration file found at $NIXPKGS_CONFIG or
|
, # Fallback: The contents of the configuration file found at $NIXPKGS_CONFIG or
|
||||||
# $HOME/.config/nixpkgs/config.nix.
|
# $HOME/.config/nixpkgs/config.nix.
|
||||||
@ -61,7 +62,7 @@ in
|
|||||||
assert args ? localSystem -> !(args ? system || args ? platform);
|
assert args ? localSystem -> !(args ? system || args ? platform);
|
||||||
|
|
||||||
import ./. (builtins.removeAttrs args [ "system" "platform" ] // {
|
import ./. (builtins.removeAttrs args [ "system" "platform" ] // {
|
||||||
inherit config overlays;
|
inherit config overlays crossSystem;
|
||||||
# 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.
|
||||||
localSystem = { system = builtins.currentSystem; } // localSystem;
|
localSystem = { system = builtins.currentSystem; } // localSystem;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user