2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
2024-02-29 20:09:43 +00:00
|
|
|
, fetchFromGitHub
|
2023-01-11 07:51:40 +00:00
|
|
|
, php
|
|
|
|
}:
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
(php.withExtensions({ enabled, all }: enabled ++ (with all; [ ast ]))).buildComposerProject (finalAttrs: {
|
2023-01-11 07:51:40 +00:00
|
|
|
pname = "phan";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "5.4.3";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phan";
|
|
|
|
repo = "phan";
|
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-O0dtnDsz6X99B99VbRQf3Wr/xJfsJqd+2l5Z5iWxHyU=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
vendorHash = "sha256-yE85MBseJa0VGV5EbjT0te4QT3697YvtumGkMMfZtxI=";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
meta = {
|
2023-01-11 07:51:40 +00:00
|
|
|
description = "Static analyzer for PHP";
|
2024-02-29 20:09:43 +00:00
|
|
|
homepage = "https://github.com/phan/phan";
|
|
|
|
license = lib.licenses.mit;
|
2023-01-11 07:51:40 +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-29 20:09:43 +00:00
|
|
|
mainProgram = "phan";
|
|
|
|
maintainers = with lib.maintainers; [ apeschar ] ++ lib.teams.php.members;
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
2024-02-29 20:09:43 +00:00
|
|
|
})
|