@@ -6,7 +6,7 @@
66# variables so that the compiler and the linker just "work".
77
88{ name ? "", stdenv, lib, nativeTools, nativeLibc, nativePrefix ? ""
9−, gcc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? ""
9+, gcc ? null, libc ? null, binutils ? null, coreutils ? null, shell ? stdenv.shell
1010, zlib ? null
1111, hostPlatform, targetPlatform
1212}:
@@ -56,15 +56,9 @@ stdenv.mkDerivation {
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;
59− shell = if shell == "" then stdenv.shell else
60− if builtins.isAttrs shell then (shell + shell.shellPath)
61− else shell;
59+ shell = shell + shell.shellPath or "";
6260
6361 crossAttrs = {
64− shell = shell.crossDrv + shell.crossDrv.shellPath;
65− coreutils = coreutils.crossDrv;
66− binutils = binutils.crossDrv;
67− 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