1{
2 lib,
3 fetchFromGitHub,
4 php,
5}:
6
7(php.withExtensions ({ enabled, all }: enabled ++ (with all; [ ast ]))).buildComposerProject
8 (finalAttrs: {
9 pname = "phan";
10 version = "5.5.1";
11
12 src = fetchFromGitHub {
13 owner = "phan";
14 repo = "phan";
15 rev = finalAttrs.version;
16 hash = "sha256-G17ORkHmu6nkfJ8UrGzcaybPOKPrq1Q+LXVS56aVOZ8=";
17 };
18
19 vendorHash = "sha256-Ake5/7IyoweC2ONDuWt9jJSbG0JbnU9lmCRu2p6uUQM=";
20
21 meta = {
22 description = "Static analyzer for PHP";
23 homepage = "https://github.com/phan/phan";
24 license = lib.licenses.mit;
25 longDescription = ''
26 Phan is a static analyzer for PHP. Phan prefers to avoid false-positives
27 and attempts to prove incorrectness rather than correctness.
28 '';
29 mainProgram = "phan";
30 maintainers = with lib.maintainers; [ apeschar ];
31 teams = [ lib.teams.php ];
32 };
33 })