summaryrefslogtreecommitdiffstats
path: root/pkgs/development/php-packages/php-codesniffer/default.nix
blob: 102b17afd5fdba53348a8f3e630ed9c31b1cf801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  fetchFromGitHub,
  lib,
  php,
}:

php.buildComposerProject2 (finalAttrs: {
  pname = "php-codesniffer";
  version = "4.0.4";

  src = fetchFromGitHub {
    owner = "PHPCSStandards";
    repo = "PHP_CodeSniffer";
    tag = finalAttrs.version;
    hash = "sha256-ZBiPTjDnnjaRWXzqB7soJsvJgU06GU79VzwsfEA9NhI=";
  };

  vendorHash = "sha256-qLYXFgY5cg2Fz33lrhwHHoqmbmtZo81ngVuUFh6N648=";

  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 ];
  };
})