@@ -5,7 +5,7 @@
55# Posix utilities, the GNU C compiler, and so on. On other systems,
66# we use the native C library.
77
8−{ system, allPackages ? import ../.., platform, config, lib }:
8+{ system, allPackages ? import ../.., platform, config, crossSystem, lib }:
99
1010
1111rec {
@@ -36,10 +36,13 @@ rec {
3636 # Linux standard environment.
3737 inherit (import ./linux { inherit system allPackages platform config lib; }) stdenvLinux;
3838
39− inherit (import ./darwin { inherit system allPackages platform config;}) stdenvDarwin;
39+ inherit (import ./darwin { inherit system allPackages platform config; }) stdenvDarwin;
40+
41+ inherit (import ./cross { inherit system allPackages platform crossSystem config lib; }) stdenvCross;
4042
4143 # Select the appropriate stdenv for the platform `system'.
4244 stdenv =
45+ if crossSystem != null then stdenvCross else
4346 if system == "i686-linux" then stdenvLinux else
4447 if system == "x86_64-linux" then stdenvLinux else
4548 if system == "armv5tel-linux" then stdenvLinux else