summary refs log tree commit diff
path: root/pkgs/top-level/impure.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2017-04-25 19:55:11 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2017-04-29 15:22:33 -0500
commit5c7815a3887508b8ba5fd35393a856aa20406a24 (patch)
tree2b5b007c6d567511ab4be0939482e20b632d6057 /pkgs/top-level/impure.nix
parente57bcc710667a76a1d17f3eee0d022b1159e9106 (diff)
downloadnixlib-5c7815a3887508b8ba5fd35393a856aa20406a24.tar
nixlib-5c7815a3887508b8ba5fd35393a856aa20406a24.tar.gz
nixlib-5c7815a3887508b8ba5fd35393a856aa20406a24.tar.bz2
nixlib-5c7815a3887508b8ba5fd35393a856aa20406a24.tar.lz
nixlib-5c7815a3887508b8ba5fd35393a856aa20406a24.tar.xz
nixlib-5c7815a3887508b8ba5fd35393a856aa20406a24.tar.zst
nixlib-5c7815a3887508b8ba5fd35393a856aa20406a24.zip
impure.nix: add crossSystem as arg
Diffstat (limited to 'pkgs/top-level/impure.nix')
-rw-r--r--pkgs/top-level/impure.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/top-level/impure.nix b/pkgs/top-level/impure.nix
index c0f4e0fa089e..c0cf8fb09113 100644
--- a/pkgs/top-level/impure.nix
+++ b/pkgs/top-level/impure.nix
@@ -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;