nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 nix-update-script,
5 php,
6 versionCheckHook,
7}:
8
9php.buildComposerProject2 (finalAttrs: {
10 pname = "phpunit";
11 version = "12.5.8";
12
13 src = fetchFromGitHub {
14 owner = "sebastianbergmann";
15 repo = "phpunit";
16 tag = finalAttrs.version;
17 hash = "sha256-93y2V+QgsjQb1is91kTbxcu1dY8MyM474qIpGRa0pp0=";
18 };
19
20 vendorHash = "sha256-q5qTQRxxsiE+B22LU+npM4ada0ddAt2f7KNz+cb6yYY=";
21
22 passthru = {
23 updateScript = nix-update-script { };
24 };
25
26 doInstallCheck = true;
27 nativeInstallCheckInputs = [ versionCheckHook ];
28
29 meta = {
30 changelog = "https://github.com/sebastianbergmann/phpunit/blob/${finalAttrs.version}/ChangeLog-${lib.versions.majorMinor finalAttrs.version}.md";
31 description = "PHP Unit Testing framework";
32 homepage = "https://phpunit.de";
33 license = lib.licenses.bsd3;
34 mainProgram = "phpunit";
35 maintainers = with lib.maintainers; [
36 onny
37 patka
38 ];
39 };
40})