nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchFromGitHub,
3 lib,
4 php,
5 versionCheckHook,
6}:
7
8php.buildComposerProject2 (finalAttrs: {
9 pname = "grumphp";
10 version = "2.18.0";
11
12 src = fetchFromGitHub {
13 owner = "phpro";
14 repo = "grumphp";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-JNpgIba+Y3qURegZFNeBKwigynSVzSfaAxM2RwcILMc=";
17 };
18
19 vendorHash = "sha256-Abi+NIXqD8HVTI1OVimeYmzybKXGGNA+l2MHUkx7CpQ=";
20
21 doInstallCheck = true;
22 nativeInstallCheckInputs = [ versionCheckHook ];
23
24 meta = {
25 changelog = "https://github.com/phpro/grumphp/releases/tag/v${finalAttrs.version}";
26 description = "PHP code-quality tool";
27 homepage = "https://github.com/phpro/grumphp";
28 license = lib.licenses.mit;
29 mainProgram = "grumphp";
30 teams = [ lib.teams.php ];
31 };
32})