2014-11-06 23:31:21 +00:00
|
|
|
{stdenv, fetchurl, transfig, texLiveAggregationFun, texLive, texLiveExtra, ghostscript
|
|
|
|
, build-manual ? false
|
|
|
|
}:
|
2009-01-27 14:00:54 +00:00
|
|
|
|
2014-11-06 23:31:21 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2009-01-27 14:00:54 +00:00
|
|
|
name = "ragel-${version}";
|
2014-11-06 23:31:21 +00:00
|
|
|
version = "6.9";
|
2009-01-27 14:00:54 +00:00
|
|
|
|
2009-03-06 23:21:28 +00:00
|
|
|
src = fetchurl {
|
2015-01-22 13:17:47 +00:00
|
|
|
url = "http://www.colm.net/files/ragel/${name}.tar.gz";
|
2014-11-06 23:31:21 +00:00
|
|
|
sha256 = "02k6rwh8cr95f1p5sjjr3wa6dilg06572xz1v71dk8awmc7vw1vf";
|
2009-03-06 23:21:28 +00:00
|
|
|
};
|
2009-01-27 14:00:54 +00:00
|
|
|
|
2014-11-06 23:31:21 +00:00
|
|
|
buildInputs = stdenv.lib.optional build-manual [ transfig ghostscript (texLiveAggregationFun { paths=[ texLive texLiveExtra ]; }) ];
|
|
|
|
|
|
|
|
preConfigure = stdenv.lib.optional build-manual ''
|
|
|
|
sed -i "s/build_manual=no/build_manual=yes/g" DIST
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2009-03-06 23:21:28 +00:00
|
|
|
homepage = http://www.complang.org/ragel;
|
|
|
|
description = "State machine compiler";
|
2014-11-06 23:31:21 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2009-01-27 14:00:54 +00:00
|
|
|
};
|
|
|
|
}
|