nixpkgs/pkgs/development/php-packages/phan/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
896 B
Nix
Raw Normal View History

2022-12-28 09:30:10 +00:00
{
lib,
fetchFromGitHub,
2022-12-28 09:30:10 +00:00
php,
}:
(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
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
meta = {
2022-12-28 09:30:10 +00:00
description = "Static analyzer for PHP";
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.
'';
mainProgram = "phan";
maintainers = with lib.maintainers; [ apeschar ] ++ lib.teams.php.members;
2022-12-28 09:30:10 +00:00
};
})