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