40 lines
1.0 KiB
Nix
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.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "phan";
|
|
repo = "phan";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-etqvZM1YWBXUapL+OIxuB1iVoY6kbS0fgLWVNx5Nb2A=";
|
|
};
|
|
|
|
vendorHash = "sha256-4PJWNPIikfWwIbrHr1c3yPOP68+bNlwjT9GkJJZoOFc=";
|
|
|
|
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 ];
|
|
};
|
|
})
|