mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
41 lines
947 B
Nix
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
|
|
];
|
|
};
|
|
})
|