summary refs log tree commit diff
path: root/pkgs/os-specific/gnu/default.nix
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@Yahoo.com>2017-01-15 17:31:52 -0500
committerJohn Ericson <Ericson2314@Yahoo.com>2017-01-24 11:37:56 -0500
commita1a798f01788bc3efe4ca477f2c9e8545eeafddc (patch)
tree5a6810ba51be552c76e80351bbfff919825d89ef /pkgs/os-specific/gnu/default.nix
parent1c0365bd88b7d98377ff639b5ede5f725e05663b (diff)
downloadnixlib-a1a798f01788bc3efe4ca477f2c9e8545eeafddc.tar
nixlib-a1a798f01788bc3efe4ca477f2c9e8545eeafddc.tar.gz
nixlib-a1a798f01788bc3efe4ca477f2c9e8545eeafddc.tar.bz2
nixlib-a1a798f01788bc3efe4ca477f2c9e8545eeafddc.tar.lz
nixlib-a1a798f01788bc3efe4ca477f2c9e8545eeafddc.tar.xz
nixlib-a1a798f01788bc3efe4ca477f2c9e8545eeafddc.tar.zst
nixlib-a1a798f01788bc3efe4ca477f2c9e8545eeafddc.zip
top-level: `crossSystem` is no longer exposed to packages. Use `*Platform`.
Diffstat (limited to 'pkgs/os-specific/gnu/default.nix')
-rw-r--r--pkgs/os-specific/gnu/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/os-specific/gnu/default.nix b/pkgs/os-specific/gnu/default.nix
index c002447d64b1..247c73e468d0 100644
--- a/pkgs/os-specific/gnu/default.nix
+++ b/pkgs/os-specific/gnu/default.nix
@@ -3,7 +3,8 @@
 args@{ fetchgit, stdenv, autoconf, automake, automake111x, libtool
 , texinfo, glibcCross, hurdPartedCross, libuuid, samba
 , gccCrossStageStatic, gccCrossStageFinal
-, forcedNativePackages, forceSystem, newScope, platform, config, crossSystem
+, forcedNativePackages, forceSystem, newScope, platform, config
+, targetPlatform, buildPlatform
 , overrides ? {} }:
 
 with args;
@@ -19,7 +20,7 @@ let
       libuuid = libuuid.crossDrv;
       automake = automake111x;
       headersOnly = false;
-      cross = assert crossSystem != null; crossSystem;
+      cross = assert targetPlatform != buildPlatform; targetPlatform;
       gccCross = gccCrossStageFinal;
     };
 
@@ -30,7 +31,7 @@ let
       libuuid = null;
       automake = automake111x;
       headersOnly = false;
-      cross = assert crossSystem != null; crossSystem;
+      cross = assert targetPlatform != buildPlatform; targetPlatform;
 
       # The "final" GCC needs glibc and the Hurd libraries (libpthread in
       # particular) so we first need an intermediate Hurd built with the
@@ -63,7 +64,7 @@ let
       inherit (gnu) machHeaders hurdHeaders;
       hurd = gnu.hurdCrossIntermediate;
       gccCross = gccCrossStageStatic;
-      cross = assert crossSystem != null; crossSystem;
+      cross = assert targetPlatform != buildPlatform; targetPlatform;
     };
 
     # In theory GNU Mach doesn't have to be cross-compiled.  However, since it