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