From 5c7815a3887508b8ba5fd35393a856aa20406a24 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Tue, 25 Apr 2017 19:55:11 -0500 Subject: [PATCH] impure.nix: add crossSystem as arg --- pkgs/top-level/impure.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;