Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 41 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142{ fetchFromGitHub, lib, php, versionCheckHook,}:
php.buildComposerProject2 (finalAttrs: { pname = "phpstan"; version = "2.1.21";
src = fetchFromGitHub { owner = "phpstan"; repo = "phpstan-src"; tag = finalAttrs.version; hash = "sha256-f+GxZPt5O++x0XKxdJqAiEfpgQYCN4uzDAzw20xd268="; };
vendorHash = "sha256-6jGZF10B9aCMgLUKXcckcPF96U8edsPaMAQ7egHAAQk="; composerStrictValidation = false;
doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "--version";
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"; teams = [ lib.teams.php ]; };})