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

31 lines
706 B
Nix
Raw Normal View History

2016-08-25 16:47:32 +01:00
{ stdenv, fetchFromGitHub, autoreconfHook }:
2012-12-01 23:25:01 +00:00
stdenv.mkDerivation rec {
pname = "re2c";
2019-10-11 00:18:13 +01:00
version = "1.2.1";
2016-08-25 16:47:32 +01:00
src = fetchFromGitHub {
2017-07-09 15:43:32 +01:00
owner = "skvadrik";
repo = "re2c";
rev = version;
2019-10-11 00:18:13 +01:00
sha256 = "1qj0ck9msb9h8g9qb1lr57jmlj8x68ini3y3ccdifjjahhhr0hd4";
2012-12-01 23:25:01 +00:00
};
2016-08-25 16:47:32 +01:00
nativeBuildInputs = [ autoreconfHook ];
doCheck = true;
enableParallelBuilding = true;
2018-08-08 22:16:27 +01:00
preCheck = ''
patchShebangs run_tests.sh
'';
2017-07-09 15:43:32 +01:00
meta = with stdenv.lib; {
description = "Tool for writing very fast and very flexible scanners";
homepage = "http://re2c.org";
2017-07-09 15:43:32 +01:00
license = licenses.publicDomain;
platforms = platforms.all;
maintainers = with maintainers; [ thoughtpolice ];
2012-12-01 23:25:01 +00:00
};
}