2024-02-20 11:35:27 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
php,
|
|
|
|
}:
|
2022-12-24 18:35:13 +00:00
|
|
|
|
2024-02-20 11:35:27 +00:00
|
|
|
php.buildComposerProject (finalAttrs: {
|
2020-10-11 14:44:31 +00:00
|
|
|
pname = "phpmd";
|
2023-12-17 19:10:55 +00:00
|
|
|
version = "2.15.0";
|
2020-10-11 14:44:31 +00:00
|
|
|
|
2024-02-20 11:35:27 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phpmd";
|
|
|
|
repo = "phpmd";
|
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-nTuJGzOZnkqrfE9R9Vujz/zGJRLlj8+yRZmmnxWrieQ=";
|
2020-10-11 14:44:31 +00:00
|
|
|
};
|
|
|
|
|
2024-02-20 11:35:27 +00:00
|
|
|
# Missing `composer.lock` from the repository.
|
|
|
|
# Issue open at https://github.com/phpmd/phpmd/issues/1056
|
|
|
|
composerLock = ./composer.lock;
|
|
|
|
vendorHash = "sha256-vr0wQkfhXHLEz8Q5nEq5Bocu1U1nDhXUlaHBsysvuRQ=";
|
2021-08-01 21:56:33 +00:00
|
|
|
|
2024-02-20 11:35:27 +00:00
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/phpmd/phpmd/releases/tag/${finalAttrs.version}";
|
2020-10-11 14:44:31 +00:00
|
|
|
description = "PHP code quality analyzer";
|
|
|
|
homepage = "https://phpmd.org/";
|
2024-02-20 11:35:27 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
mainProgram = "phpmd";
|
|
|
|
maintainers = lib.teams.php.members;
|
2020-10-11 14:44:31 +00:00
|
|
|
};
|
2024-02-20 11:35:27 +00:00
|
|
|
})
|