Files
nixpkgs/pkgs/by-name/re/re2c/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

59 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
nix-update-script,
python3,
# for passthru.tests
ninja,
php,
spamassassin,
}:
stdenv.mkDerivation rec {
pname = "re2c";
version = "4.3";
src = fetchFromGitHub {
owner = "skvadrik";
repo = "re2c";
rev = version;
hash = "sha256-zPOENMfXXgTwds1t+Lrmz9+GTHJf2yRpQsGT7nLRvcg=";
};
nativeBuildInputs = [
autoreconfHook
python3
];
doCheck = true;
enableParallelBuilding = true;
preCheck = ''
patchShebangs run_tests.py
'';
passthru = {
updateScript = nix-update-script {
# Skip non-release tags like `python-experimental`.
extraArgs = [
"--version-regex"
"([0-9.]+)"
];
};
tests = {
inherit ninja php spamassassin;
};
};
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 ];
};
}