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