2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, gcc, asciidoc, autoreconfHook }:
|
2015-05-18 15:06:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "colm";
|
2019-05-21 10:44:57 +01:00
|
|
|
version = "0.13.0.7";
|
2015-05-18 15:06:33 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://www.colm.net/files/colm/${pname}-${version}.tar.gz";
|
2019-05-21 10:44:57 +01:00
|
|
|
sha256 = "0f76iri173l2wja2v7qrwmf958cqwh5g9x4bhj2z8wknmlla6gz4";
|
2015-05-18 15:06:33 +01:00
|
|
|
};
|
|
|
|
|
2019-07-10 06:45:33 +01:00
|
|
|
patches = [ ./cross-compile.patch ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper asciidoc autoreconfHook ];
|
2015-05-18 15:06:33 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/colm \
|
|
|
|
--prefix PATH ":" ${gcc}/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2015-05-18 15:06:33 +01:00
|
|
|
description = "A programming language for the analysis and transformation of computer languages";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.colm.net/open-source/colm";
|
2015-05-18 15:06:33 +01:00
|
|
|
license = licenses.gpl2;
|
2018-01-05 19:10:08 +00:00
|
|
|
platforms = platforms.unix;
|
2015-05-18 15:06:33 +01:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
|
|
|
}
|