2021-04-16 09:03:18 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
2012-12-01 23:25:01 +00:00
|
|
|
|
2014-08-20 06:12:21 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "re2c";
|
2021-04-16 09:03:18 +00:00
|
|
|
version = "2.1.1";
|
2016-08-25 15:47:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-07-09 14:43:32 +00:00
|
|
|
owner = "skvadrik";
|
|
|
|
repo = "re2c";
|
|
|
|
rev = version;
|
2021-04-16 09:03:18 +00:00
|
|
|
sha256 = "06nvk5sf4vrc2bvpj4vi2xwy3ggv548sn530drz5fi67nhzgga26";
|
2012-12-01 23:25:01 +00:00
|
|
|
};
|
|
|
|
|
2016-08-25 15:47:32 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2019-10-11 21:50:21 +00:00
|
|
|
doCheck = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-08-08 21:16:27 +00:00
|
|
|
preCheck = ''
|
|
|
|
patchShebangs run_tests.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Tool for writing very fast and very flexible scanners";
|
2021-04-16 09:03:18 +00:00
|
|
|
homepage = "https://re2c.org";
|
2017-07-09 14:43:32 +00:00
|
|
|
license = licenses.publicDomain;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
2012-12-01 23:25:01 +00:00
|
|
|
};
|
|
|
|
}
|