summary refs log tree commit diff
path: root/pkgs/development/tools/parsing/ragel
diff options
context:
space:
mode:
authorNicolas Pierron <nicolas.b.pierron@gmail.com>2009-01-27 14:00:54 +0000
committerNicolas Pierron <nicolas.b.pierron@gmail.com>2009-01-27 14:00:54 +0000
commit507ab31cbe4af13e1de6b12f5cabb00a2643543f (patch)
tree90c7e317a2c49de980bf80bd5efa781a17c45478 /pkgs/development/tools/parsing/ragel
parentc5a95e894e673847a5d25379352890157db2ca1f (diff)
downloadnixpkgs-507ab31cbe4af13e1de6b12f5cabb00a2643543f.tar
nixpkgs-507ab31cbe4af13e1de6b12f5cabb00a2643543f.tar.gz
nixpkgs-507ab31cbe4af13e1de6b12f5cabb00a2643543f.tar.bz2
nixpkgs-507ab31cbe4af13e1de6b12f5cabb00a2643543f.tar.lz
nixpkgs-507ab31cbe4af13e1de6b12f5cabb00a2643543f.tar.xz
nixpkgs-507ab31cbe4af13e1de6b12f5cabb00a2643543f.tar.zst
nixpkgs-507ab31cbe4af13e1de6b12f5cabb00a2643543f.zip
Add ragel: A state machine compiler.
svn path=/nixpkgs/trunk/; revision=13881
Diffstat (limited to 'pkgs/development/tools/parsing/ragel')
-rw-r--r--pkgs/development/tools/parsing/ragel/default.nix44
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 00000000000..f60d32f09ea
--- /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";
+    };
+  };
+}