depot/third_party/nixpkgs/pkgs/development/php-packages/phpstan/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

32 lines
1 KiB
Nix

{ fetchFromGitHub, lib, php }:
php.buildComposerProject (finalAttrs: {
pname = "phpstan";
version = "1.10.59";
src = fetchFromGitHub {
owner = "phpstan";
repo = "phpstan-src";
rev = finalAttrs.version;
hash = "sha256-2+CQtpmh2r2+87zLhx7UkYlZ7sDQdDh4S8v67PGNjLM=";
};
vendorHash = "sha256-6Wea4iUSFq0xSWFq4er4lzFn2mgeoYBXG1zMGM3Y390=";
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;
};
})