1{ lib, stdenv, fetchurl, makeWrapper, gcc, asciidoc, autoreconfHook }:
2
3stdenv.mkDerivation rec {
4 pname = "colm";
5 version = "0.13.0.7";
6
7 src = fetchurl {
8 url = "https://www.colm.net/files/colm/${pname}-${version}.tar.gz";
9 sha256 = "0f76iri173l2wja2v7qrwmf958cqwh5g9x4bhj2z8wknmlla6gz4";
10 };
11
12 patches = [ ./cross-compile.patch ];
13
14 nativeBuildInputs = [ makeWrapper asciidoc autoreconfHook ];
15
16 doCheck = true;
17
18 postInstall = ''
19 wrapProgram $out/bin/colm \
20 --prefix PATH ":" ${gcc}/bin
21 '';
22
23 meta = with lib; {
24 description = "A programming language for the analysis and transformation of computer languages";
25 homepage = "http://www.colm.net/open-source/colm";
26 license = licenses.gpl2;
27 platforms = platforms.unix;
28 maintainers = with maintainers; [ pSub ];
29 };
30}