summary refs log tree commit diff
path: root/pkgs/development/tools/parsing/ragel
diff options
context:
space:
mode:
authorPascal Wittmann <mail@pascal-wittmann.de>2014-11-07 00:31:21 +0100
committerPascal Wittmann <mail@pascal-wittmann.de>2014-11-07 00:31:21 +0100
commit3a0f2619ce892b44e1996c622966fd3638282db8 (patch)
tree006a24d9d66f0f8a8a20b85eeb36b583e6b04c18 /pkgs/development/tools/parsing/ragel
parent63629dbd5c3d36e7c941c100a632f93a2ec9f321 (diff)
downloadnixpkgs-3a0f2619ce892b44e1996c622966fd3638282db8.tar
nixpkgs-3a0f2619ce892b44e1996c622966fd3638282db8.tar.gz
nixpkgs-3a0f2619ce892b44e1996c622966fd3638282db8.tar.bz2
nixpkgs-3a0f2619ce892b44e1996c622966fd3638282db8.tar.lz
nixpkgs-3a0f2619ce892b44e1996c622966fd3638282db8.tar.xz
nixpkgs-3a0f2619ce892b44e1996c622966fd3638282db8.tar.zst
nixpkgs-3a0f2619ce892b44e1996c622966fd3638282db8.zip
ragel: update from 6.3 to 6.9
Diffstat (limited to 'pkgs/development/tools/parsing/ragel')
-rw-r--r--pkgs/development/tools/parsing/ragel/default.nix48
1 files changed, 16 insertions, 32 deletions
diff --git a/pkgs/development/tools/parsing/ragel/default.nix b/pkgs/development/tools/parsing/ragel/default.nix
index 247daacf161..0ae6cf92b4e 100644
--- a/pkgs/development/tools/parsing/ragel/default.nix
+++ b/pkgs/development/tools/parsing/ragel/default.nix
@@ -1,42 +1,26 @@
-{stdenv, composableDerivation, fetchurl, transfig, texLive}:
+{stdenv, fetchurl, transfig, texLiveAggregationFun, texLive, texLiveExtra, ghostscript
+, build-manual ? false
+}:
 
-let
-  version = "6.3";
+stdenv.mkDerivation rec {
   name = "ragel-${version}";
-in
+  version = "6.9";
 
-composableDerivation.composableDerivation {} {
-  inherit name;
   src = fetchurl {
-    url = "http://www.complang.org/ragel/${name}.tar.gz";
-    sha256 = "018cedc8a68be85cda330fc53d0bb8a1ca6ad39b1cf790eed0311e7baa5a2520";
+    url = "http://www.colm.net/wp-content/uploads/2014/10/${name}.tar.gz";
+    sha256 = "02k6rwh8cr95f1p5sjjr3wa6dilg06572xz1v71dk8awmc7vw1vf";
   };
 
-  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 = {
+  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; {
     homepage = http://www.complang.org/ragel;
     description = "State machine compiler";
-    license = stdenv.lib.licenses.gpl2;
+    license = licenses.gpl2;
+    maintainers = with maintainers; [ pSub ];
   };
 }