Merge pull request #25301 from matthewbauer/impure-cross
impure.nix: add crossSystem as arg
This commit is contained in:
commit
f71456ac24
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ in
|
|||
# with unnamed parameters allowed by ...
|
||||
system ? localSystem.system
|
||||
, platform ? localSystem.platform
|
||||
, crossSystem ? null
|
||||
|
||||
, # Fallback: The contents of the configuration file found at $NIXPKGS_CONFIG or
|
||||
# $HOME/.config/nixpkgs/config.nix.
|
||||
|
@ -61,7 +62,7 @@ in
|
|||
assert args ? localSystem -> !(args ? system || args ? 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
|
||||
# Autotools parlance) system.
|
||||
localSystem = { system = builtins.currentSystem; } // localSystem;
|
||||
|
|
Loading…
Reference in a new issue