Files
nixpkgs/pkgs/development/php-packages/phan/default.nix
2026-10-20 03:55:40 +00:00

40 lines
1.0 KiB
Nix

{
lib,
fetchFromGitHub,
php,
versionCheckHook,
}:
(php.withExtensions ({ enabled, all }: enabled ++ (with all; [ ast ]))).buildComposerProject2
(finalAttrs: {
pname = "phan";
version = "6.0.11";
src = fetchFromGitHub {
owner = "phan";
repo = "phan";
tag = finalAttrs.version;
hash = "sha256-d5tzO3N+47J2xwm2JRpEDOTrlYWyFHQc1jmS5ZiOr4A=";
};
vendorHash = "sha256-+vOxTy889vLCflT1UyzMo0I7/1/OTUdphhSJTq2DfCk=";
composerStrictValidation = false;
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
meta = {
description = "Static analyzer for PHP";
homepage = "https://github.com/phan/phan";
license = lib.licenses.mit;
longDescription = ''
Phan is a static analyzer for PHP. Phan prefers to avoid false-positives
and attempts to prove incorrectness rather than correctness.
'';
mainProgram = "phan";
maintainers = [ ];
teams = [ lib.teams.php ];
};
})