2016-02-15 18:34:31 +01:00
|
|
|
{stdenv, fetchurl, transfig, tex , ghostscript, colm, build-manual ? false
|
2014-11-07 00:31:21 +01:00
|
|
|
}:
|
2009-01-27 15:00:54 +01:00
|
|
|
|
2014-11-07 00:31:21 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2009-01-27 15:00:54 +01:00
|
|
|
name = "ragel-${version}";
|
2016-02-15 18:29:44 +01:00
|
|
|
version = "7.0.0.6";
|
2009-01-27 15:00:54 +01:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
src = fetchurl {
|
2015-01-22 14:17:47 +01:00
|
|
|
url = "http://www.colm.net/files/ragel/${name}.tar.gz";
|
2016-02-15 18:29:44 +01:00
|
|
|
sha256 = "1ns3kbcvhinn4rwm54ajg49d1la8filxskl3rgbwws0irzw507vs";
|
2009-03-07 00:21:28 +01:00
|
|
|
};
|
2009-01-27 15:00:54 +01:00
|
|
|
|
2016-02-15 18:34:31 +01:00
|
|
|
buildInputs = stdenv.lib.optional build-manual [ transfig ghostscript tex ];
|
2014-11-07 00:31:21 +01:00
|
|
|
|
|
|
|
preConfigure = stdenv.lib.optional build-manual ''
|
|
|
|
sed -i "s/build_manual=no/build_manual=yes/g" DIST
|
|
|
|
'';
|
2016-02-15 18:29:44 +01:00
|
|
|
|
|
|
|
configureFlags = [ "--with-colm=${colm}" ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2014-11-07 00:31:21 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2009-03-07 00:21:28 +01:00
|
|
|
homepage = http://www.complang.org/ragel;
|
|
|
|
description = "State machine compiler";
|
2014-11-07 00:31:21 +01:00
|
|
|
license = licenses.gpl2;
|
2016-06-18 02:56:44 +02:00
|
|
|
platforms = platforms.unix;
|
2014-11-07 00:31:21 +01:00
|
|
|
maintainers = with maintainers; [ pSub ];
|
2009-01-27 15:00:54 +01:00
|
|
|
};
|
|
|
|
}
|