88abffb7d2
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
38 lines
734 B
Nix
38 lines
734 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "re2c";
|
|
version = "2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "skvadrik";
|
|
repo = "re2c";
|
|
rev = version;
|
|
sha256 = "0snfxk1cf2f4dy4hcxd1fx1grav3di0qjgqqn97k85zsf9f6ys78";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
python3
|
|
];
|
|
|
|
doCheck = true;
|
|
enableParallelBuilding = true;
|
|
|
|
preCheck = ''
|
|
patchShebangs run_tests.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool for writing very fast and very flexible scanners";
|
|
homepage = "https://re2c.org";
|
|
license = licenses.publicDomain;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
};
|
|
}
|