depot/third_party/nixpkgs/pkgs/development/php-packages/phpstan/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

36 lines
1.1 KiB
Nix

{
fetchFromGitHub,
lib,
php,
}:
php.buildComposerProject2 (finalAttrs: {
pname = "phpstan";
version = "1.11.8";
src = fetchFromGitHub {
owner = "phpstan";
repo = "phpstan-src";
rev = finalAttrs.version;
hash = "sha256-wF2OqJ0kg+wEjSq8mAyF5em5RAqjyXqKFkdAjxOrePM=";
};
vendorHash = "sha256-NLaOxWMhTViv7OfXE5b7NTeL/jD7Fvbx/1ihGlRJCws=";
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;
};
})