1 { lib, stdenv, fetchurl, makeWrapper, gcc, asciidoc, autoreconfHook }:
3 stdenv.mkDerivation rec {
8 url = "https://www.colm.net/files/colm/${pname}-${version}.tar.gz";
9 sha256 = "0f76iri173l2wja2v7qrwmf958cqwh5g9x4bhj2z8wknmlla6gz4";
12 patches = [ ./cross-compile.patch ];
14 nativeBuildInputs = [ makeWrapper asciidoc autoreconfHook ];
16 env = lib.optionalAttrs stdenv.cc.isGNU {
17 NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion";
23 wrapProgram $out/bin/colm \
24 --prefix PATH ":" ${gcc}/bin
28 description = "Programming language for the analysis and transformation of computer languages";
30 homepage = "http://www.colm.net/open-source/colm";
31 license = licenses.gpl2;
32 platforms = platforms.unix;
33 maintainers = with maintainers; [ pSub ];