about summary refs log tree commit diff
path: root/pkgs/development/compilers/colm/default.nix
blob: ebfee6c4188ef5cfcf34dc39b32106f204796bc4 (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
{ stdenv, fetchurl, makeWrapper, gcc }:

stdenv.mkDerivation rec {
  name = "colm-${version}";
  version = "0.12.0";

  src = fetchurl {
    url = "http://www.colm.net/files/colm/${name}.tar.gz";
    sha256 = "0kbfipxv3nvggd1a2nahk3jg22iifp2l7lkm55i5r7qkpms5sm3v";
  };

  buildInputs = [ makeWrapper ];

  doCheck = true;
  checkPhase = ''sh ./test/runtests.sh'';

  postInstall = ''
    wrapProgram $out/bin/colm \
      --prefix PATH ":" ${gcc}/bin
  '';

  meta = with stdenv.lib; {
    description = "A programming language for the analysis and transformation of computer languages";
    homepage = http://www.colm.net/open-source/colm;
    license = licenses.gpl2;
    maintainers = with maintainers; [ pSub ];
  };
}