summary refs log tree commit diff
path: root/pkgs/development/compilers/rdmd/default.nix
blob: f70b8f448b4853341de7d57959ae5065618120fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{stdenv, lib, fetchgit, dmd}:

stdenv.mkDerivation {
  name = "rdmd-20141113";

  buildInputs = [ dmd ];

  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;
    platforms = stdenv.lib.platforms.unix;
  };
}