nixpkgs-suyu/pkgs/development/tools/parsing/re2c/default.nix
Sergei Trofimovich 82571f3636 re2c: 2.1.1 -> 2.2
Pull in new python3 tests-only dependency.
2021-08-19 17:10:35 +01:00

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 ];
};
}