Files
nixpkgs/pkgs/development/php-packages/php-codesniffer/default.nix
2026-01-19 22:08:11 +01:00

29 lines
748 B
Nix

{
fetchFromGitHub,
lib,
php,
}:
php.buildComposerProject2 (finalAttrs: {
pname = "php-codesniffer";
version = "4.0.1";
src = fetchFromGitHub {
owner = "PHPCSStandards";
repo = "PHP_CodeSniffer";
tag = finalAttrs.version;
hash = "sha256-63W9GMTDrIIMWSieYjv+xAHEj9xjsnvXsUXQ1I7fQFo=";
};
vendorHash = "sha256-h+EVwPtIeXnVHEMCMYJFwuqeWXvZaYLTxrb/RKycIx0=";
meta = {
changelog = "https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/${finalAttrs.version}";
description = "PHP coding standard tool";
license = lib.licenses.bsd3;
homepage = "https://github.com/PHPCSStandards/PHP_CodeSniffer/";
maintainers = with lib.maintainers; [ javaguirre ];
teams = [ lib.teams.php ];
};
})