mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
rdmd: update to new version
Source of old version was not available anymore. Update also depends on newer version of dmd.
This commit is contained in:
parent
fbd2330aff
commit
959f706ace
@ -1,29 +1,29 @@
|
||||
{ stdenv, fetchurl, writeText, lib, dmd }:
|
||||
{stdenv, lib, fetchgit, dmd}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "rdmd-2.064";
|
||||
|
||||
src = fetchurl {
|
||||
url = https://raw2.github.com/D-Programming-Language/tools/2.064/rdmd.d;
|
||||
sha256 = "0b1g3ng6bkanvg00r6xb4ycpbh9x8b9dw589av665azxbcraqrs1";
|
||||
name = "rdmd-src";
|
||||
};
|
||||
name = "rdmd-20141113";
|
||||
|
||||
buildInputs = [ dmd ];
|
||||
|
||||
builder = writeText "drmd-builder.sh" ''
|
||||
source $stdenv/setup
|
||||
cp $src rdmd.d
|
||||
dmd rdmd.d
|
||||
mkdir -p $out/bin
|
||||
cp rdmd $out/bin/
|
||||
src = fetchgit {
|
||||
url = git://github.com/D-Programming-Language/tools.git;
|
||||
rev = "f496c68ee4e776597bd7382aa47f05da698a69e";
|
||||
sha256 = "0vbhmz8nbh8ayml4vad0239kfg982vqfyqqrjv6wrlnjah97n5ms";
|
||||
};
|
||||
|
||||
buildPhase = ''
|
||||
dmd rdmd.d
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp rdmd $out/bin/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Wrapper for D language compiler";
|
||||
homepage = http://dlang.org/rdmd.html;
|
||||
license = lib.licenses.boost;
|
||||
maintainers = with stdenv.lib.maintainers; [ vlstill ];
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user