83627f9931
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
php,
|
|
}:
|
|
|
|
php.buildComposerProject (finalAttrs: {
|
|
pname = "phpstan";
|
|
version = "1.11.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "phpstan";
|
|
repo = "phpstan-src";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-J1y8+sY/amAhWQTL4odL+fe3t10KDNBIMV9Q92VzQcE=";
|
|
};
|
|
|
|
vendorHash = "sha256-BRm1ih+NHQIet7OuuSqXheVV/ZMS2h2wkRjdJ+nam48=";
|
|
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;
|
|
};
|
|
})
|