git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #4976 from BlackEdder/pr-dmd

dmd: update to 2.066.1

commitc8c7cc1f09fb306d9b0a6bb1aa68df64f0b889ef authorArseniy Seroka <jagajaga@users.noreply.github.com> dateFri 14 Nov 2014, 00:32 (12 years ago) parent113961c959f706
2 files changed+38−35
pkgs/development/compilers/dmd/default.nix+23−20 pkgs/development/compilers/rdmd/default.nix+15−15
pkgs/development/compilers/dmd/default.nix+23−20
@@ -1,20 +1,15 @@
11{ stdenv, fetchurl, gcc, unzip, curl }:
22
33stdenv.mkDerivation {
4− name = "dmd-2.064.2";
4+ name = "dmd-2.066.1";
55
66 src = fetchurl {
7− url = http://downloads.dlang.org/releases/2013/dmd.2.064.2.zip;
8− sha256 = "1i0jdybigffwyb7c43j0c4aayxx3b93zzqrjxyw6zgp06yhi06pm";
7+ url = http://downloads.dlang.org/releases/2014/dmd.2.066.1.zip;
8+ sha256 = "1qifwgrl6h232zsnvcx3kmb5d0fsy7j9zv17r3b4vln7x5rvzc66";
99 };
1010
1111 buildInputs = [ gcc unzip curl ];
1212
13− configurePhase = "";
14− patchPhase = ''
15− cp src/VERSION src/dmd/
16− cp license.txt src/phobos/LICENSE_1_0.txt
17− '';
1813 buildPhase = ''
1914 cd src/dmd
2015 make -f posix.mak INSTALL_DIR=$out
@@ -28,25 +23,33 @@ stdenv.mkDerivation {
2823
2924 installPhase = ''
3025 cd src/dmd
31− tee dmd.conf.default << EOF
32− [Environment]
33− DFLAGS=-I$out/import -L-L$out/lib
34− EOF
35−
36− make -f posix.mak INSTALL_DIR=$out install
37− export DMD=$PWD/dmd
38− cd ../druntime
39− make -f posix.mak INSTALL_DIR=$out install
26+ mkdir $out
27+ mkdir $out/bin
28+ cp dmd $out/bin
29+
30+ cd ../druntime
31+ mkdir $out/include
32+ mkdir $out/include/d2
33+ cp -r import/* $out/include/d2
34+
4035 cd ../phobos
41− make -f posix.mak INSTALL_DIR=$out install
42− cd ../..
36+ mkdir $out/lib
37+ cp generated/linux/release/64/libphobos2.a $out/lib # for 64-bit version
38+
39+ cp -r std $out/include/d2
40+ cp -r etc $out/include/d2
41+
42+ cd $out/bin
43+ tee dmd.conf << EOF
44+[Environment]
45+DFLAGS=-I$out/include/d2 -L-L$out/lib -L--no-warn-search-mismatch -L--export-dynamic
46+EOF
4347 '';
4448
4549 meta = {
4650 description = "D language compiler";
4751 homepage = http://dlang.org/;
4852 license = "open source, see included files";
49− maintainers = with stdenv.lib.maintainers; [ vlstill ];
5053 platforms = stdenv.lib.platforms.unix;
5154 };
5255}
pkgs/development/compilers/rdmd/default.nix+15−15
@@ -1,29 +1,29 @@
1−{ stdenv, fetchurl, writeText, lib, dmd }:
1+{stdenv, lib, fetchgit, dmd}:
22
33stdenv.mkDerivation {
4− name = "rdmd-2.064";
5−
6− src = fetchurl {
7− url = https://raw2.github.com/D-Programming-Language/tools/2.064/rdmd.d;
8− sha256 = "0b1g3ng6bkanvg00r6xb4ycpbh9x8b9dw589av665azxbcraqrs1";
9− name = "rdmd-src";
10− };
4+ name = "rdmd-20141113";
115
126 buildInputs = [ dmd ];
137
14− builder = writeText "drmd-builder.sh" ''
15− source $stdenv/setup
16− cp $src rdmd.d
17− dmd rdmd.d
18− mkdir -p $out/bin
19− cp rdmd $out/bin/
8+ src = fetchgit {
9+ url = git://github.com/D-Programming-Language/tools.git;
10+ rev = "f496c68ee4e776597bd7382aa47f05da698a69e";
11+ sha256 = "0vbhmz8nbh8ayml4vad0239kfg982vqfyqqrjv6wrlnjah97n5ms";
12+ };
13+
14+ buildPhase = ''
15+ dmd rdmd.d
2016 '';
2117
18+ installPhase = ''
19+ mkdir -p $out/bin
20+ cp rdmd $out/bin/
21+ '';
22+
2223 meta = {
2324 description = "Wrapper for D language compiler";
2425 homepage = http://dlang.org/rdmd.html;
2526 license = lib.licenses.boost;
26− maintainers = with stdenv.lib.maintainers; [ vlstill ];
2727 platforms = stdenv.lib.platforms.unix;
2828 };
2929}