depot/third_party/nixpkgs/pkgs/development/tools/parsing/re2c/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02: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 ];
};
}