diff options
author | BlackEdder <edder@tkwsping.nl> | 2014-11-13 14:57:58 +0000 |
---|---|---|
committer | BlackEdder <edder@tkwsping.nl> | 2014-11-13 14:57:58 +0000 |
commit | fbd2330aff51c74a215259b9669ebe065bbc8e19 (patch) | |
tree | 744d064eb6e4fcd1498786975dc2a835145752f6 /pkgs/development/compilers/dmd | |
parent | 9eb29a601c87af6abfba149eefe650c64f82b29a (diff) | |
download | nixpkgs-fbd2330aff51c74a215259b9669ebe065bbc8e19.tar nixpkgs-fbd2330aff51c74a215259b9669ebe065bbc8e19.tar.gz nixpkgs-fbd2330aff51c74a215259b9669ebe065bbc8e19.tar.bz2 nixpkgs-fbd2330aff51c74a215259b9669ebe065bbc8e19.tar.lz nixpkgs-fbd2330aff51c74a215259b9669ebe065bbc8e19.tar.xz nixpkgs-fbd2330aff51c74a215259b9669ebe065bbc8e19.tar.zst nixpkgs-fbd2330aff51c74a215259b9669ebe065bbc8e19.zip |
dmd: update to 2.066.1
Diffstat (limited to 'pkgs/development/compilers/dmd')
-rw-r--r-- | pkgs/development/compilers/dmd/default.nix | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/pkgs/development/compilers/dmd/default.nix b/pkgs/development/compilers/dmd/default.nix index 96a3d2abfc6..78ce19713e3 100644 --- a/pkgs/development/compilers/dmd/default.nix +++ b/pkgs/development/compilers/dmd/default.nix @@ -1,20 +1,15 @@ { stdenv, fetchurl, gcc, unzip, curl }: stdenv.mkDerivation { - name = "dmd-2.064.2"; + name = "dmd-2.066.1"; src = fetchurl { - url = http://downloads.dlang.org/releases/2013/dmd.2.064.2.zip; - sha256 = "1i0jdybigffwyb7c43j0c4aayxx3b93zzqrjxyw6zgp06yhi06pm"; + url = http://downloads.dlang.org/releases/2014/dmd.2.066.1.zip; + sha256 = "1qifwgrl6h232zsnvcx3kmb5d0fsy7j9zv17r3b4vln7x5rvzc66"; }; buildInputs = [ gcc unzip curl ]; - configurePhase = ""; - patchPhase = '' - cp src/VERSION src/dmd/ - cp license.txt src/phobos/LICENSE_1_0.txt - ''; buildPhase = '' cd src/dmd make -f posix.mak INSTALL_DIR=$out @@ -28,25 +23,33 @@ stdenv.mkDerivation { installPhase = '' cd src/dmd - tee dmd.conf.default << EOF - [Environment] - DFLAGS=-I$out/import -L-L$out/lib - EOF - - make -f posix.mak INSTALL_DIR=$out install - export DMD=$PWD/dmd - cd ../druntime - make -f posix.mak INSTALL_DIR=$out install + mkdir $out + mkdir $out/bin + cp dmd $out/bin + + cd ../druntime + mkdir $out/include + mkdir $out/include/d2 + cp -r import/* $out/include/d2 + cd ../phobos - make -f posix.mak INSTALL_DIR=$out install - cd ../.. + mkdir $out/lib + cp generated/linux/release/64/libphobos2.a $out/lib # for 64-bit version + + cp -r std $out/include/d2 + cp -r etc $out/include/d2 + + cd $out/bin + tee dmd.conf << EOF +[Environment] +DFLAGS=-I$out/include/d2 -L-L$out/lib -L--no-warn-search-mismatch -L--export-dynamic +EOF ''; meta = { description = "D language compiler"; homepage = http://dlang.org/; license = "open source, see included files"; - maintainers = with stdenv.lib.maintainers; [ vlstill ]; platforms = stdenv.lib.platforms.unix; }; } |