mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-04 11:50:04 +00:00
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.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 ];
|
|
};
|
|
})
|