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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
954 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, nix-update-script
, python3
# for passthru.tests
, ninja
, php
, spamassassin
}:
2012-12-01 23:25:01 +00:00
stdenv.mkDerivation rec {
pname = "re2c";
version = "3.0";
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 = "sha256-ovwmltu97fzNQT0oZHefrAo4yV9HV1NwcY4PTSM5Bro=";
2012-12-01 23:25:01 +00:00
};
nativeBuildInputs = [
autoreconfHook
python3
];
2016-08-25 15:47:32 +00:00
doCheck = true;
enableParallelBuilding = true;
2018-08-08 21:16:27 +00:00
preCheck = ''
patchShebangs run_tests.py
2018-08-08 21:16:27 +00:00
'';
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
tests = {
inherit ninja php spamassassin;
};
};
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
};
}