-
-
Notifications
You must be signed in to change notification settings - Fork 13k
/
default.nix
36 lines (32 loc) · 1.05 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
fetchFromGitHub,
lib,
php,
}:
php.buildComposerProject (finalAttrs: {
pname = "phpstan";
version = "1.11.6";
src = fetchFromGitHub {
owner = "phpstan";
repo = "phpstan-src";
rev = finalAttrs.version;
hash = "sha256-WQnzw/Tjc6viReO45nkMCL1a2eooWZSB77pY3lm+6wA=";
};
vendorHash = "sha256-KkPeFTn2j9M0CcFpj9goecJEPBYcOoU1vkbvyaj2M94=";
composerStrictValidation = false;
meta = {
changelog = "https://github.com/phpstan/phpstan/releases/tag/${finalAttrs.version}";
description = "PHP Static Analysis Tool";
homepage = "https://github.com/phpstan/phpstan";
longDescription = ''
PHPStan focuses on finding errors in your code without actually
running it. It catches whole classes of bugs even before you write
tests for the code. It moves PHP closer to compiled languages in the
sense that the correctness of each line of the code can be checked
before you run the actual line.
'';
license = lib.licenses.mit;
mainProgram = "phpstan";
maintainers = lib.teams.php.members;
};
})