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
41 lines
877 B
Nix
41 lines
877 B
Nix
{
|
|
buildPecl,
|
|
lib,
|
|
pcre2,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
}:
|
|
|
|
let
|
|
version = "1.0.12";
|
|
in
|
|
buildPecl {
|
|
inherit version;
|
|
pname = "pcov";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "krakjoe";
|
|
repo = "pcov";
|
|
tag = "v${version}";
|
|
hash = "sha256-lyY17Y9chpTO8oeWmDGSh0YSnipYqCuy1qmn9su5Eu8=";
|
|
};
|
|
|
|
buildInputs = [ pcre2 ];
|
|
|
|
patches = [
|
|
# Allow building for PHP 8.4
|
|
(fetchpatch {
|
|
url = "https://github.com/krakjoe/pcov/commit/7d764c7c2555e8287351961d72be3ebec4d8743f.patch";
|
|
hash = "sha256-5wIHrrCwUXQpPdUg+3Kwyop5yvOzQQ3qc4pQXU8q2OM=";
|
|
})
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/krakjoe/pcov/releases/tag/v${version}";
|
|
description = "Self contained php-code-coverage compatible driver for PHP";
|
|
license = lib.licenses.php301;
|
|
homepage = "https://github.com/krakjoe/pcov";
|
|
teams = [ lib.teams.php ];
|
|
};
|
|
}
|