Files
nixpkgs/pkgs/by-name/ph/phpunit/package.nix
2026-08-09 19:24:12 +00:00

41 lines
947 B
Nix

{
lib,
fetchFromGitHub,
nix-update-script,
php,
versionCheckHook,
}:
php.buildComposerProject2 (finalAttrs: {
pname = "phpunit";
version = "13.3.0";
src = fetchFromGitHub {
owner = "sebastianbergmann";
repo = "phpunit";
tag = finalAttrs.version;
hash = "sha256-vu45rsz/2hjy91QzItt+wtAdlK5S4Bv2gyt8lt0p2k8=";
};
vendorHash = "sha256-RKYm6c0jCvM4jhXyUL06T+xEUWZF2jNDPGpgSFax7dk=";
passthru = {
updateScript = nix-update-script { };
};
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
meta = {
changelog = "https://github.com/sebastianbergmann/phpunit/blob/${finalAttrs.version}/ChangeLog-${lib.versions.majorMinor finalAttrs.version}.md";
description = "PHP Unit Testing framework";
homepage = "https://phpunit.de";
license = lib.licenses.bsd3;
mainProgram = "phpunit";
maintainers = with lib.maintainers; [
onny
patka
];
};
})