2014-11-13 21:51:32 +01:00
|
|
|
{stdenv, lib, fetchgit, dmd}:
|
2014-01-10 19:10:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-11-13 21:51:32 +01:00
|
|
|
name = "rdmd-20141113";
|
2014-01-10 19:10:22 +01:00
|
|
|
|
|
|
|
buildInputs = [ dmd ];
|
|
|
|
|
2014-11-13 21:51:32 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = git://github.com/D-Programming-Language/tools.git;
|
|
|
|
rev = "f496c68ee4e776597bd7382aa47f05da698a69e";
|
|
|
|
sha256 = "0vbhmz8nbh8ayml4vad0239kfg982vqfyqqrjv6wrlnjah97n5ms";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
dmd rdmd.d
|
2014-01-10 19:10:22 +01:00
|
|
|
'';
|
|
|
|
|
2014-11-13 21:51:32 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp rdmd $out/bin/
|
|
|
|
'';
|
|
|
|
|
2014-01-10 19:10:22 +01:00
|
|
|
meta = {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Wrapper for D language compiler";
|
2014-01-10 19:10:22 +01:00
|
|
|
homepage = http://dlang.org/rdmd.html;
|
|
|
|
license = lib.licenses.boost;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|