dmd: add gcc runtime dependency because dmd uses the linker of gcc on linux.

From #11327.

authored by Thomas Mader and committed by Vladimír Čunát ef17efa9 eca688c6

+4 -2
+4 -2
pkgs/development/compilers/dmd/default.nix
··· 1 - { stdenv, fetchurl, unzip, curl }: 2 3 stdenv.mkDerivation { 4 name = "dmd-2.067.1"; ··· 8 sha256 = "0ny99vfllvvgcl79pwisxcdnb3732i827k9zg8c0j4s0n79k5z94"; 9 }; 10 11 - buildInputs = [ unzip curl ]; 12 13 # Allow to use "clang++", commented in Makefile 14 postPatch = stdenv.lib.optionalString stdenv.isDarwin '' ··· 47 48 cp -r std $out/include/d2 49 cp -r etc $out/include/d2 50 51 cd $out/bin 52 tee dmd.conf << EOF
··· 1 + { stdenv, fetchurl, unzip, curl, makeWrapper, gcc }: 2 3 stdenv.mkDerivation { 4 name = "dmd-2.067.1"; ··· 8 sha256 = "0ny99vfllvvgcl79pwisxcdnb3732i827k9zg8c0j4s0n79k5z94"; 9 }; 10 11 + buildInputs = [ unzip curl makeWrapper ]; 12 13 # Allow to use "clang++", commented in Makefile 14 postPatch = stdenv.lib.optionalString stdenv.isDarwin '' ··· 47 48 cp -r std $out/include/d2 49 cp -r etc $out/include/d2 50 + 51 + wrapProgram $out/bin/dmd --prefix PATH ":" "${gcc}/bin/" 52 53 cd $out/bin 54 tee dmd.conf << EOF