2023-10-09 19:29:22 +00:00
|
|
|
{ fetchFromGitHub, lib, php }:
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
php.buildComposerProject (finalAttrs: {
|
2020-10-16 20:44:37 +00:00
|
|
|
pname = "phpstan";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.10.66";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phpstan";
|
|
|
|
repo = "phpstan-src";
|
|
|
|
rev = finalAttrs.version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-ZEQ6oP6zyi0cL69J9ck8gAht5taPkzH+iW5ALC4saAQ=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-Qp/eMhcKK32N1EMgeIspBDs28Oofwn6n2bEFKqvSx9E=";
|
2024-01-02 11:29:13 +00:00
|
|
|
composerStrictValidation = false;
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/phpstan/phpstan/releases/tag/${finalAttrs.version}";
|
2020-10-16 20:44:37 +00:00
|
|
|
description = "PHP Static Analysis Tool";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/phpstan/phpstan";
|
2020-10-16 20:44:37 +00:00
|
|
|
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.
|
|
|
|
'';
|
2023-10-09 19:29:22 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "phpstan";
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = lib.teams.php.members;
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|