2022-12-28 09:30:10 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-02-20 11:20:31 +00:00
|
|
|
fetchFromGitHub,
|
2022-12-28 09:30:10 +00:00
|
|
|
php,
|
|
|
|
}:
|
2024-02-20 11:20:31 +00:00
|
|
|
|
|
|
|
(php.withExtensions ({ enabled, all }: enabled ++ (with all; [ ast ]))).buildComposerProject
|
|
|
|
(finalAttrs: {
|
2022-12-28 09:30:10 +00:00
|
|
|
pname = "phan";
|
2024-08-14 05:15:46 +00:00
|
|
|
version = "5.4.5";
|
2022-12-28 09:30:10 +00:00
|
|
|
|
2024-02-20 11:20:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phan";
|
|
|
|
repo = "phan";
|
|
|
|
rev = finalAttrs.version;
|
2024-08-14 05:15:46 +00:00
|
|
|
hash = "sha256-CSV+kapCzGOCBaYnX0lJVlDdZGNBCKZ/nogOac1xj1A=";
|
2022-12-28 09:30:10 +00:00
|
|
|
};
|
|
|
|
|
2024-08-14 05:15:46 +00:00
|
|
|
vendorHash = "sha256-qRcB0KmUJWRQaMlnK1JdUsZrikThD6nQnrqQZm9yROk=";
|
2022-12-28 09:30:10 +00:00
|
|
|
|
2024-02-20 11:20:31 +00:00
|
|
|
meta = {
|
2022-12-28 09:30:10 +00:00
|
|
|
description = "Static analyzer for PHP";
|
2024-02-20 11:20:31 +00:00
|
|
|
homepage = "https://github.com/phan/phan";
|
|
|
|
license = lib.licenses.mit;
|
2022-12-28 09:30:10 +00:00
|
|
|
longDescription = ''
|
|
|
|
Phan is a static analyzer for PHP. Phan prefers to avoid false-positives
|
|
|
|
and attempts to prove incorrectness rather than correctness.
|
|
|
|
'';
|
2024-02-20 11:20:31 +00:00
|
|
|
mainProgram = "phan";
|
|
|
|
maintainers = with lib.maintainers; [ apeschar ] ++ lib.teams.php.members;
|
2022-12-28 09:30:10 +00:00
|
|
|
};
|
2024-02-20 11:20:31 +00:00
|
|
|
})
|