···86868787 preferLocalBuild = true;
88888989- inherit cc shell libc_bin libc_dev libc_lib binutils_bin coreutils_bin;
8989+ inherit cc libc_bin libc_dev libc_lib binutils_bin coreutils_bin;
9090+ shell = getBin shell + shell.shellPath or "";
9091 gnugrep_bin = if nativeTools then "" else gnugrep;
91929293 binPrefix = prefix;
···383384384385 # for substitution in utils.sh
385386 expandResponseParams = "${expand-response-params}/bin/expand-response-params";
386386-387387- crossAttrs = {
388388- shell = shell.crossDrv + shell.crossDrv.shellPath;
389389- };
390387391388 meta =
392389 let cc_ = if cc != null then cc else {}; in
+2-8
pkgs/build-support/gcc-wrapper-old/default.nix
···66# variables so that the compiler and the linker just "work".
7788{ name ? "", stdenv, lib, nativeTools, nativeLibc, nativePrefix ? ""
99-, gcc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? ""
99+, gcc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? stdenv.shell
1010, zlib ? null
1111, hostPlatform, targetPlatform
1212}:
···5656 langAda = if nativeTools then false else gcc ? langAda && gcc.langAda;
5757 langVhdl = if nativeTools then false else gcc ? langVhdl && gcc.langVhdl;
5858 zlib = if gcc != null && gcc ? langVhdl then zlib else null;
5959- shell = if shell == "" then stdenv.shell else
6060- if builtins.isAttrs shell then (shell + shell.shellPath)
6161- else shell;
5959+ shell = shell + shell.shellPath or "";
62606361 crossAttrs = {
6464- shell = shell.crossDrv + shell.crossDrv.shellPath;
6565- coreutils = coreutils.crossDrv;
6666- binutils = binutils.crossDrv;
6767- gcc = gcc.crossDrv;
6862 #
6963 # This is not the best way to do this. I think the reference should be
7064 # the style in the gcc-cross-wrapper, but to keep a stable stdenv now I