diff options
author | Nicolas Pierron <nicolas.b.pierron@gmail.com> | 2009-01-27 14:00:54 +0000 |
---|---|---|
committer | Nicolas Pierron <nicolas.b.pierron@gmail.com> | 2009-01-27 14:00:54 +0000 |
commit | 507ab31cbe4af13e1de6b12f5cabb00a2643543f (patch) | |
tree | 90c7e317a2c49de980bf80bd5efa781a17c45478 /pkgs/development/tools/parsing | |
parent | c5a95e894e673847a5d25379352890157db2ca1f (diff) |
Add ragel: A state machine compiler.
svn path=/nixpkgs/trunk/; revision=13881
Diffstat (limited to 'pkgs/development/tools/parsing')
-rw-r--r-- | pkgs/development/tools/parsing/ragel/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/tools/parsing/ragel/default.nix b/pkgs/development/tools/parsing/ragel/default.nix new file mode 100644 index 0000000000000..f60d32f09ea26 --- /dev/null +++ b/pkgs/development/tools/parsing/ragel/default.nix @@ -0,0 +1,44 @@ +{composableDerivation, fetchurl, transfig, texLive}: + +let + version = "6.3"; + name = "ragel-${version}"; +in + +composableDerivation.composableDerivation { + initial = rec { + inherit name; + src = fetchurl { + url = "http://www.complang.org/ragel/${name}.tar.gz"; + sha256 = "018cedc8a68be85cda330fc53d0bb8a1ca6ad39b1cf790eed0311e7baa5a2520"; + }; + + 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 + ''; + }; + }; + + cfg = { + docSupport = false; + }; + + meta = { + homepage = http://www.complang.org/ragel; + description = "State machine compiler"; + license = "GPL-2"; + }; + }; +} |