2024-06-30 08:16:52 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
autoreconfHook,
|
|
|
|
nix-update-script,
|
|
|
|
python3,
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
# for passthru.tests
|
|
|
|
# , ninja
|
|
|
|
# , php
|
|
|
|
# , spamassassin
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "re2c";
|
|
|
|
version = "3.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-06-30 08:16:52 +00:00
|
|
|
owner = "skvadrik";
|
|
|
|
repo = "re2c";
|
|
|
|
rev = version;
|
2024-05-02 00:46:19 +00:00
|
|
|
sha256 = "sha256-7zZdLby7HdNoURgdkg+xnlp6VDCACcyGCTtjM43OLd4=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
patchShebangs run_tests.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# passthru = {
|
|
|
|
# updateScript = nix-update-script { };
|
|
|
|
# tests = {
|
|
|
|
# inherit ninja php spamassassin;
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for writing very fast and very flexible scanners";
|
2024-06-30 08:16:52 +00:00
|
|
|
homepage = "https://re2c.org";
|
|
|
|
license = licenses.publicDomain;
|
|
|
|
platforms = platforms.all;
|
2024-05-02 00:46:19 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|