lol
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.4.3";
11
12 src = fetchFromGitHub {
13 owner = "phan";
14 repo = "phan";
15 rev = finalAttrs.version;
16 hash = "sha256-O0dtnDsz6X99B99VbRQf3Wr/xJfsJqd+2l5Z5iWxHyU=";
17 };
18
19 vendorHash = "sha256-yE85MBseJa0VGV5EbjT0te4QT3697YvtumGkMMfZtxI=";
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 ] ++ lib.teams.php.members;
31 };
32 })