depot/third_party/nixpkgs/pkgs/development/php-packages/php-cs-fixer/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

31 lines
889 B
Nix

{
lib,
fetchFromGitHub,
php,
}:
php.buildComposerProject (finalAttrs: {
pname = "php-cs-fixer";
version = "3.58.1";
src = fetchFromGitHub {
owner = "PHP-CS-Fixer";
repo = "PHP-CS-Fixer";
rev = "v${finalAttrs.version}";
hash = "sha256-MBNFTHhApANDeHY0tTKbIP2EfVDH7mxwA42PKihzPug=";
};
# Missing `composer.lock` from the repository.
# Issue open at https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7590
composerLock = ./composer.lock;
vendorHash = "sha256-dryqtCUr2xkZgDRLKpQjyEpLGz8WiHtLY4fF/pCR10w=";
meta = {
changelog = "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/tag/v${finalAttrs.version}";
description = "Tool to automatically fix PHP coding standards issues";
homepage = "https://cs.symfony.com/";
license = lib.licenses.mit;
mainProgram = "php-cs-fixer";
maintainers = lib.teams.php.members;
};
})