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