git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #25301 from matthewbauer/impure-cross

impure.nix: add crossSystem as arg

commitf71456ac2409a9352abcf9260aed0323e225f82e authorJohn Ericson <Ericson2314@yahoo.com> dateSat 29 Apr 2017, 23:19 (10 years ago) parent48ec6805c7815a
1 file changed+2−1
pkgs/top-level/impure.nix+2−1
pkgs/top-level/impure.nix+2−1
@@ -22,6 +22,7 @@ in
2222 # with unnamed parameters allowed by ...
2323 system ? localSystem.system
2424, platform ? localSystem.platform
25+, crossSystem ? null
2526
2627, # Fallback: The contents of the configuration file found at $NIXPKGS_CONFIG or
2728 # $HOME/.config/nixpkgs/config.nix.
@@ -61,7 +62,7 @@ in
6162assert args ? localSystem -> !(args ? system || args ? platform);
6263
6364import ./. (builtins.removeAttrs args [ "system" "platform" ] // {
64− inherit config overlays;
65+ inherit config overlays crossSystem;
6566 # Fallback: Assume we are building packages on the current (build, in GNU
6667 # Autotools parlance) system.
6768 localSystem = { system = builtins.currentSystem; } // localSystem;