mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-04 11:50:01 +00:00
36 lines
908 B
Nix
36 lines
908 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
php,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
php.buildComposerProject2 (finalAttrs: {
|
|
pname = "php-cs-fixer";
|
|
version = "3.95.32";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PHP-CS-Fixer";
|
|
repo = "PHP-CS-Fixer";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-RTRCwb2kHrmxkITh+Eq3yAVv6ZcdfHtEklwl6FSbrKA=";
|
|
};
|
|
|
|
composerLock = ./composer.lock;
|
|
vendorHash = "sha256-DPaJQZpuZgBb4IL83+e95igC54iWg0g+Fk5uA1OPGk8=";
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
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.maintainers.patka ];
|
|
};
|
|
})
|