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