1{ fetchFromGitHub, lib, php }:
2
3php.buildComposerProject (finalAttrs: {
4 pname = "phpstan";
5 version = "1.10.37";
6
7 src = fetchFromGitHub {
8 owner = "phpstan";
9 repo = "phpstan-src";
10 rev = finalAttrs.version;
11 hash = "sha256-y55bfwE3H/oDCwDq3wrClyX8dhk0p6vEl/CMhqN6LkA=";
12 };
13
14 vendorHash = "sha256-hjCfrmpn2rYgApenZkHX8fXqPXukh7BVKENkvwIk8Dk=";
15
16 meta = {
17 changelog = "https://github.com/phpstan/phpstan/releases/tag/${finalAttrs.version}";
18 description = "PHP Static Analysis Tool";
19 longDescription = ''
20 PHPStan focuses on finding errors in your code without actually
21 running it. It catches whole classes of bugs even before you write
22 tests for the code. It moves PHP closer to compiled languages in the
23 sense that the correctness of each line of the code can be checked
24 before you run the actual line.
25 '';
26 license = lib.licenses.mit;
27 homepage = "https://github.com/phpstan/phpstan";
28 maintainers = lib.teams.php.members;
29 };
30})