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

stdenv.mkDerivation rec {
  pname = "colm";
  version = "0.13.0.7";

  src = fetchurl {
    url = "https://www.colm.net/files/colm/${pname}-${version}.tar.gz";
    sha256 = "0f76iri173l2wja2v7qrwmf958cqwh5g9x4bhj2z8wknmlla6gz4";
  };

  patches = [ ./cross-compile.patch ];

  nativeBuildInputs = [ makeWrapper asciidoc autoreconfHook ];

  doCheck = true;

  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;
    platforms = platforms.unix;
    maintainers = with maintainers; [ pSub ];
  };
}