2024-02-29 20:09:43 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, php
|
|
|
|
}:
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
php.buildComposerProject (finalAttrs: {
|
2020-10-16 20:44:37 +00:00
|
|
|
pname = "php-cs-fixer";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "3.50.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}";
|
|
|
|
hash = "sha256-T0R/TfCLG9+Vcbsm5W8/7weI+e1RuSzTBc3VmRlG74c=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
# TODO: Open a PR against https://github.com/PHP-CS-Fixer/PHP-CS-Fixer
|
|
|
|
# Missing `composer.lock` from the repository.
|
|
|
|
composerLock = ./composer.lock;
|
|
|
|
vendorHash = "sha256-kcEB7UZ++ZY5vhaoPGjaC3q1fpxYcZ/yZeMP3AdQBEk=";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
meta = {
|
|
|
|
changelog = "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/tag/${finalAttrs.version}";
|
2020-10-16 20:44:37 +00:00
|
|
|
description = "A 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
|
|
|
})
|