treewide: Purge stdenv.platform and top-level platform

Progress towards #27069
This commit is contained in:
John Ericson
2018-08-20 15:18:07 -04:00
parent f0d6e22b7f
commit 7d85ade0cc
12 changed files with 16 additions and 20 deletions

View File

@@ -61,7 +61,8 @@ stdenv.mkDerivation rec {
**
** Ideally in the future this would be less of a hack and could be
** done by Chez itself. Alternatively, there could just be a big
** case statement matching to the different stdenv.platform values...
** case statement matching to the different stdenv.hostPlatform.platform
** values...
*/
postInstall = ''
m="$(ls ./work/boot)"

View File

@@ -6,7 +6,7 @@ let
arch = if stdenv.isAarch32
then (if stdenv.is64bit then "arm64" else "arm")
else (if stdenv.is64bit then "x64" else "ia32");
armHardFloat = stdenv.isAarch32 && (stdenv.platform.gcc.float or null) == "hard";
armHardFloat = stdenv.isAarch32 && (stdenv.hostPlatform.platform.gcc.float or null) == "hard";
in
stdenv.mkDerivation rec {