git.iko.soy/typeable/nixpkgs
on master help sign in
dmd: 2.081.2 -> 2.083.1
commit50e450cc2ddedfad4673cacb0582b72cce2043a7 authorThomas Mader <thomas.mader@gmail.com> dateSat 22 Dec 2018, 18:07 (8 years ago) parent3ff636f
1 file changed+13−8
pkgs/development/compilers/dmd/default.nix+13−8
pkgs/development/compilers/dmd/default.nix+13−8
@@ -2,10 +2,10 @@
22, makeWrapper, unzip, which
33, curl, tzdata, gdb, darwin
44, callPackage, targetPackages, ldc
5−, version ? "2.081.2"
6−, dmdSha256 ? "1wwk4shqldvgyczv1ihmljpfj3yidq7mxcj69i9kjl7jqx54hw62"
7−, druntimeSha256 ? "0dqfsy34q2q7mk2gsi4ix3vgqg7szg3m067fghgx53vnvrzlpsc0"
8−, phobosSha256 ? "1dan59lc4wggsrv5aax7jsxnzg7fz37xah84k1cbwjb3xxhhkd9n"
5+, version ? "2.083.1"
6+, dmdSha256 ? "0b52yq7slgbrawb22kib9bk2x9xjiy6axwz1317fck5axl093d90"
7+, druntimeSha256 ? "1hm9p59ih21yv8x7cqjhkyy94677q4f8wk9fs9i1rybx8x19njyn"
8+, phobosSha256 ? "1zmz0f1wj0dgxy2cy63ljjc1sl2sgb7ij8bamlxw9nxrchwi3l43"
99}:
1010
1111let
@@ -48,12 +48,15 @@ let
4848 # Remove cppa test for now because it doesn't work.
4949 rm dmd/test/runnable/cppa.d
5050 rm dmd/test/runnable/extra-files/cppb.cpp
51+ ''
52+
53+ + stdenv.lib.optionalString (stdenv.hostPlatform.isDarwin) ''
54+ rm dmd/test/runnable/test16096.sh
5155 '';
5256
5357 # Compile with PIC to prevent colliding modules with binutils 2.28.
5458 # https://issues.dlang.org/show_bug.cgi?id=17375
5559 usePIC = "-fPIC";
56− ROOT_HOME_DIR = "$(echo ~root)";
5760
5861 phobosPatches = ''
5962 # Ugly hack so the dlopen call has a chance to succeed.
@@ -105,13 +108,14 @@ let
105108 cd ../druntime
106109 make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd}
107110 cd ../phobos
108− make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd} TZ_DATABASE_DIR=${tzdata}/share/zoneinfo/
111+ echo ${tzdata}/share/zoneinfo/ > TZDatabaseDirFile
112+ make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd} DFLAGS="-version=TZDatabaseDir -J$(pwd)"
109113 cd ..
110114 '';
111115
112116 # Disable tests on Darwin for now because of
113117 # https://github.com/NixOS/nixpkgs/issues/41099
114− doCheck = !stdenv.hostPlatform.isDarwin;
118+ doCheck = true;
115119
116120 checkPhase = ''
117121 cd dmd
@@ -197,7 +201,8 @@ let
197201
198202 buildPhase = ''
199203 cd phobos
200− make -j$NIX_BUILD_CORES -f posix.mak unittest BUILD=release ENABLE_RELEASE=1 PIC=1 DMD=${dmdBuild}/bin/dmd TZ_DATABASE_DIR=${tzdata}/share/zoneinfo/
204+ echo ${tzdata}/share/zoneinfo/ > TZDatabaseDirFile
205+ make -j$NIX_BUILD_CORES -f posix.mak unittest BUILD=release ENABLE_RELEASE=1 PIC=1 DMD=${dmdBuild}/bin/dmd DFLAGS="-version=TZDatabaseDir -J$(pwd)"
201206 '';
202207
203208 installPhase = ''