2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
php,
|
2024-02-29 20:09:43 +00:00
|
|
|
}:
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2024-10-29 11:11:06 +00:00
|
|
|
php.buildComposerProject2 (finalAttrs: {
|
2020-10-16 20:44:37 +00:00
|
|
|
pname = "php-cs-fixer";
|
2024-10-29 11:11:06 +00:00
|
|
|
version = "3.64.0";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PHP-CS-Fixer";
|
|
|
|
repo = "PHP-CS-Fixer";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-10-29 11:11:06 +00:00
|
|
|
hash = "sha256-N2m3U0HjwQtm7loqYfEl7kstqljXC8evp6GEh+Cd9Hs=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2024-10-29 11:11:06 +00:00
|
|
|
# Upstream doesn't provide a composer.lock.
|
|
|
|
# More info at https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7590
|
2024-02-29 20:09:43 +00:00
|
|
|
composerLock = ./composer.lock;
|
2024-10-29 11:11:06 +00:00
|
|
|
vendorHash = "sha256-cOKfvNjFl9QKwPZp81IHaRurRhmXgbydhdTWYknlGBM=";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
meta = {
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/tag/v${finalAttrs.version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool to automatically fix PHP coding standards issues";
|
2022-11-21 17:40:18 +00:00
|
|
|
homepage = "https://cs.symfony.com/";
|
2024-02-29 20:09:43 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
mainProgram = "php-cs-fixer";
|
|
|
|
maintainers = lib.teams.php.members;
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
2024-02-29 20:09:43 +00:00
|
|
|
})
|