git.iko.soy/typeable/nixpkgs
on master help sign in
misc: Remove almost all uses of stdenv.{ccCross,binutils}
commit12795a706852539b8a29c796caced6295e7af459 authorJohn Ericson <Ericson2314@Yahoo.com> dateTue 30 May 2017, 20:17 (10 years ago) parentd016637
9 files changed+14−16
pkgs/build-support/cc-wrapper/default.nix−1 pkgs/build-support/gcc-wrapper-old/default.nix−1 pkgs/development/compilers/gcc/4.5/default.nix+1−1 pkgs/development/compilers/gcc/4.8/default.nix+1−1 pkgs/development/compilers/gcc/4.9/default.nix+1−1 pkgs/development/compilers/gcc/5/default.nix+1−1 pkgs/development/compilers/gcc/6/default.nix+1−1 pkgs/development/compilers/gcc/snapshot/default.nix+1−1 pkgs/development/compilers/ghc/head.nix+8−8
pkgs/build-support/cc-wrapper/default.nix−1
@@ -370,7 +370,6 @@ stdenv.mkDerivation {
370370
371371 crossAttrs = {
372372 shell = shell.crossDrv + shell.crossDrv.shellPath;
373− libc = stdenv.ccCross.libc;
374373 };
375374
376375 meta =
pkgs/build-support/gcc-wrapper-old/default.nix−1
@@ -61,7 +61,6 @@ stdenv.mkDerivation {
6161
6262 crossAttrs = {
6363 shell = shell.crossDrv + shell.crossDrv.shellPath;
64− libc = stdenv.ccCross.libc;
6564 coreutils = coreutils.crossDrv;
6665 binutils = binutils.crossDrv;
6766 gcc = gcc.crossDrv;
pkgs/development/compilers/gcc/4.5/default.nix+1−1
@@ -283,7 +283,7 @@ stdenv.mkDerivation ({
283283 NM_FOR_TARGET = "${targetPlatform.config}-nm";
284284 CXX_FOR_TARGET = "${targetPlatform.config}-g++";
285285 # If we are making a cross compiler, cross != null
286− NIX_CC_CROSS = if targetPlatform == hostPlatform then "${stdenv.ccCross}" else "";
286+ NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
287287 dontStrip = true;
288288 configureFlags = ''
289289 ${if enableMultilib then "" else "--disable-multilib"}
pkgs/development/compilers/gcc/4.8/default.nix+1−1
@@ -401,7 +401,7 @@ stdenv.mkDerivation ({
401401 NM_FOR_TARGET = "${targetPlatform.config}-nm";
402402 CXX_FOR_TARGET = "${targetPlatform.config}-g++";
403403 # If we are making a cross compiler, cross != null
404− NIX_CC_CROSS = if targetPlatform == hostPlatform then "${stdenv.ccCross}" else "";
404+ NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
405405 dontStrip = true;
406406 configureFlags = ''
407407 ${if enableMultilib then "" else "--disable-multilib"}
pkgs/development/compilers/gcc/4.9/default.nix+1−1
@@ -407,7 +407,7 @@ stdenv.mkDerivation ({
407407 NM_FOR_TARGET = "${targetPlatform.config}-nm";
408408 CXX_FOR_TARGET = "${targetPlatform.config}-g++";
409409 # If we are making a cross compiler, cross != null
410− NIX_CC_CROSS = if targetPlatform == hostPlatform then "${stdenv.ccCross}" else "";
410+ NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
411411 dontStrip = true;
412412 configureFlags = ''
413413 ${if enableMultilib then "" else "--disable-multilib"}
pkgs/development/compilers/gcc/5/default.nix+1−1
@@ -422,7 +422,7 @@ stdenv.mkDerivation ({
422422 NM_FOR_TARGET = "${targetPlatform.config}-nm";
423423 CXX_FOR_TARGET = "${targetPlatform.config}-g++";
424424 # If we are making a cross compiler, cross != null
425− NIX_CC_CROSS = if targetPlatform == hostPlatform then "${stdenv.ccCross}" else "";
425+ NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
426426 dontStrip = true;
427427 configureFlags = ''
428428 ${if enableMultilib then "" else "--disable-multilib"}
pkgs/development/compilers/gcc/6/default.nix+1−1
@@ -404,7 +404,7 @@ stdenv.mkDerivation ({
404404 NM_FOR_TARGET = "${targetPlatform.config}-nm";
405405 CXX_FOR_TARGET = "${targetPlatform.config}-g++";
406406 # If we are making a cross compiler, cross != null
407− NIX_CC_CROSS = if targetPlatform == hostPlatform then "${stdenv.ccCross}" else "";
407+ NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
408408 dontStrip = true;
409409 configureFlags = ''
410410 ${if enableMultilib then "" else "--disable-multilib"}
pkgs/development/compilers/gcc/snapshot/default.nix+1−1
@@ -405,7 +405,7 @@ stdenv.mkDerivation ({
405405 NM_FOR_TARGET = "${targetPlatform.config}-nm";
406406 CXX_FOR_TARGET = "${targetPlatform.config}-g++";
407407 # If we are making a cross compiler, cross != null
408− NIX_CC_CROSS = if targetPlatform == hostPlatform then "${stdenv.ccCross}" else "";
408+ NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
409409 dontStrip = true;
410410 configureFlags = ''
411411 ${if enableMultilib then "" else "--disable-multilib"}
pkgs/development/compilers/ghc/head.nix+8−8
@@ -101,26 +101,26 @@ in stdenv.mkDerivation (rec {
101101 '';
102102
103103 configureFlags = [
104− "CC=${stdenv.ccCross}/bin/${cross.config}-cc"
105− "LD=${stdenv.binutils}/bin/${cross.config}-ld"
106− "AR=${stdenv.binutils}/bin/${cross.config}-ar"
107− "NM=${stdenv.binutils}/bin/${cross.config}-nm"
108− "RANLIB=${stdenv.binutils}/bin/${cross.config}-ranlib"
104+ "CC=${stdenv.cc}/bin/${cross.config}-cc"
105+ "LD=${stdenv.cc}/bin/${cross.config}-ld"
106+ "AR=${stdenv.cc}/bin/${cross.config}-ar"
107+ "NM=${stdenv.cc}/bin/${cross.config}-nm"
108+ "RANLIB=${stdenv.cc}/bin/${cross.config}-ranlib"
109109 "--target=${cross.config}"
110110 "--enable-bootstrap-with-devel-snapshot"
111111 ] ++
112112 # fix for iOS: https://www.reddit.com/r/haskell/comments/4ttdz1/building_an_osxi386_to_iosarm64_cross_compiler/d5qvd67/
113113 lib.optional (cross.config or null == "aarch64-apple-darwin14") "--disable-large-address-space";
114114
115− buildInputs = commonBuildInputs ++ [ stdenv.ccCross stdenv.binutils ];
115+ buildInputs = commonBuildInputs;
116116
117117 configurePlatforms = [];
118118
119119 passthru = {
120120 inherit bootPkgs cross;
121121
122− cc = "${stdenv.ccCross}/bin/${cross.config}-cc";
122+ cc = "${stdenv.cc}/bin/${cross.config}-cc";
123123
124− ld = "${stdenv.binutils}/bin/${cross.config}-ld";
124+ ld = "${stdenv.cc}/bin/${cross.config}-ld";
125125 };
126126})