about summary refs log tree commit diff
path: root/pkgs/development/php-packages/phan/default.nix
blob: e390389eef22733e9cbd1ee027a2f9375ae18524 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib
, fetchFromGitHub
, php
}:

(php.withExtensions({ enabled, all }: enabled ++ (with all; [ ast ]))).buildComposerProject (finalAttrs: {
  pname = "phan";
  version = "5.4.3";

  src = fetchFromGitHub {
    owner = "phan";
    repo = "phan";
    rev = finalAttrs.version;
    hash = "sha256-O0dtnDsz6X99B99VbRQf3Wr/xJfsJqd+2l5Z5iWxHyU=";
  };

  vendorHash = "sha256-yE85MBseJa0VGV5EbjT0te4QT3697YvtumGkMMfZtxI=";

  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 = with lib.maintainers; [ apeschar ] ++ lib.teams.php.members;
  };
})