nixpkgs/pkgs/development/tools/parsing/ragel/default.nix

32 lines
880 B
Nix
Raw Normal View History

2016-02-15 09:29:44 -08:00
{stdenv, fetchurl, transfig, texLiveAggregationFun, texLive, texLiveExtra
, ghostscript, colm, build-manual ? false
2014-11-06 15:31:21 -08:00
}:
2014-11-06 15:31:21 -08:00
stdenv.mkDerivation rec {
name = "ragel-${version}";
2016-02-15 09:29:44 -08:00
version = "7.0.0.6";
src = fetchurl {
url = "http://www.colm.net/files/ragel/${name}.tar.gz";
2016-02-15 09:29:44 -08:00
sha256 = "1ns3kbcvhinn4rwm54ajg49d1la8filxskl3rgbwws0irzw507vs";
};
2016-02-15 09:29:44 -08:00
buildInputs = stdenv.lib.optional build-manual [ transfig ghostscript
(texLiveAggregationFun { paths=[ texLive texLiveExtra ]; }) ];
2014-11-06 15:31:21 -08:00
preConfigure = stdenv.lib.optional build-manual ''
sed -i "s/build_manual=no/build_manual=yes/g" DIST
'';
2016-02-15 09:29:44 -08:00
configureFlags = [ "--with-colm=${colm}" ];
doCheck = true;
2014-11-06 15:31:21 -08:00
meta = with stdenv.lib; {
homepage = http://www.complang.org/ragel;
description = "State machine compiler";
2014-11-06 15:31:21 -08:00
license = licenses.gpl2;
maintainers = with maintainers; [ pSub ];
};
}