nixpkgs-suyu/pkgs/development/tools/parsing/re2c/default.nix

39 lines
734 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, python3
}:
2012-12-02 00:25:01 +01:00
stdenv.mkDerivation rec {
pname = "re2c";
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;
sha256 = "0snfxk1cf2f4dy4hcxd1fx1grav3di0qjgqqn97k85zsf9f6ys78";
2012-12-02 00:25:01 +01:00
};
nativeBuildInputs = [
autoreconfHook
python3
];
2016-08-25 17:47:32 +02:00
doCheck = true;
enableParallelBuilding = true;
2018-08-08 23:16:27 +02:00
preCheck = ''
patchShebangs run_tests.py
2018-08-08 23:16:27 +02:00
'';
meta = with lib; {
description = "Tool for writing very fast and very flexible scanners";
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
};
}