1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/parsing/ragel/default.nix

31 lines
811 B
Nix
Raw Normal View History

2016-02-15 17:34:31 +00:00
{stdenv, fetchurl, transfig, tex , ghostscript, colm, build-manual ? false
2014-11-06 23:31:21 +00:00
}:
2014-11-06 23:31:21 +00:00
stdenv.mkDerivation rec {
name = "ragel-${version}";
2016-11-17 20:50:25 +00:00
version = "7.0.0.9";
src = fetchurl {
url = "http://www.colm.net/files/ragel/${name}.tar.gz";
2016-11-17 20:50:25 +00:00
sha256 = "1w2jhfg3fxl15gcmm7z3jbi6splgc83mmwcfbp08lfc8sg2wmrmr";
};
2016-02-15 17:34:31 +00:00
buildInputs = stdenv.lib.optional build-manual [ transfig ghostscript tex ];
2014-11-06 23:31:21 +00:00
preConfigure = stdenv.lib.optional build-manual ''
sed -i "s/build_manual=no/build_manual=yes/g" DIST
'';
2016-02-15 17:29:44 +00:00
configureFlags = [ "--with-colm=${colm}" ];
doCheck = true;
2014-11-06 23:31:21 +00:00
meta = with stdenv.lib; {
homepage = http://www.complang.org/ragel;
description = "State machine compiler";
2014-11-06 23:31:21 +00:00
license = licenses.gpl2;
2016-06-18 01:56:44 +01:00
platforms = platforms.unix;
2014-11-06 23:31:21 +00:00
maintainers = with maintainers; [ pSub ];
};
}