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

31 lines
705 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
2012-12-01 23:25:01 +00:00
stdenv.mkDerivation rec {
pname = "re2c";
version = "2.1.1";
2016-08-25 15:47:32 +00:00
src = fetchFromGitHub {
2017-07-09 14:43:32 +00:00
owner = "skvadrik";
repo = "re2c";
rev = version;
sha256 = "06nvk5sf4vrc2bvpj4vi2xwy3ggv548sn530drz5fi67nhzgga26";
2012-12-01 23:25:01 +00:00
};
2016-08-25 15:47:32 +00:00
nativeBuildInputs = [ autoreconfHook ];
doCheck = true;
enableParallelBuilding = true;
2018-08-08 21:16:27 +00:00
preCheck = ''
patchShebangs run_tests.sh
'';
meta = with lib; {
description = "Tool for writing very fast and very flexible scanners";
homepage = "https://re2c.org";
2017-07-09 14:43:32 +00:00
license = licenses.publicDomain;
platforms = platforms.all;
maintainers = with maintainers; [ thoughtpolice ];
2012-12-01 23:25:01 +00:00
};
}