2014-07-28 11:43:20 +02:00
|
|
|
{stdenv, composableDerivation, fetchurl, transfig, texLive}:
|
2009-01-27 15:00:54 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "6.3";
|
|
|
|
name = "ragel-${version}";
|
|
|
|
in
|
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
composableDerivation.composableDerivation {} {
|
|
|
|
inherit name;
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.complang.org/ragel/${name}.tar.gz";
|
|
|
|
sha256 = "018cedc8a68be85cda330fc53d0bb8a1ca6ad39b1cf790eed0311e7baa5a2520";
|
|
|
|
};
|
2009-01-27 15:00:54 +01:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
flags = {
|
|
|
|
doc = {
|
|
|
|
# require fig2dev & pdflatex (see README)
|
|
|
|
buildInputs = [transfig texLive];
|
|
|
|
# use post* because default values of buildPhase is empty.
|
|
|
|
postBuild = ''
|
|
|
|
pushd doc
|
|
|
|
make
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
postInstall = ''
|
|
|
|
pushd doc
|
|
|
|
make install
|
|
|
|
popd
|
|
|
|
'';
|
2009-01-27 15:00:54 +01:00
|
|
|
};
|
2009-03-07 00:21:28 +01:00
|
|
|
};
|
2009-01-27 15:00:54 +01:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
cfg = {
|
|
|
|
docSupport = false;
|
|
|
|
};
|
2009-01-27 15:00:54 +01:00
|
|
|
|
2009-03-07 00:21:28 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.complang.org/ragel;
|
|
|
|
description = "State machine compiler";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2009-01-27 15:00:54 +01:00
|
|
|
};
|
|
|
|
}
|