diff --git a/pkgs/build-support/gcc-wrapper/default.nix b/pkgs/build-support/gcc-wrapper/default.nix index d30bf874506..4e486f8fc64 100644 --- a/pkgs/build-support/gcc-wrapper/default.nix +++ b/pkgs/build-support/gcc-wrapper/default.nix @@ -50,10 +50,12 @@ stdenv.mkDerivation { langAda = if nativeTools then false else gcc ? langAda && gcc.langAda; langVhdl = if nativeTools then false else gcc ? langVhdl && gcc.langVhdl; zlib = if (gcc != null && gcc ? langVhdl) then zlib else null; - shell = if shell == "" then stdenv.shell else shell; + shell = if shell == "" then stdenv.shell else + if builtins.isAttrs shell then (shell + shell.shellPath) + else shell; crossAttrs = { - shell = shell.hostDrv + "${shell.hostDrv.shellPath}"; + shell = shell.hostDrv + shell.hostDrv.shellPath; libc = libc.hostDrv; coreutils = coreutils.hostDrv; binutils = binutils.hostDrv;