lol

Merge pull request #10345 from javaguirre/package-phpcs

phpcs: init at 2.3.4

+28
+1
lib/maintainers.nix
··· 130 130 iyzsong = "Song Wenwu <iyzsong@gmail.com>"; 131 131 j-keck = "Jürgen Keck <jhyphenkeck@gmail.com>"; 132 132 jagajaga = "Arseniy Seroka <ars.seroka@gmail.com>"; 133 + javaguirre = "Javier Aguirre <contacto@javaguirre.net>"; 133 134 jb55 = "William Casarin <bill@casarin.me>"; 134 135 jcumming = "Jack Cummings <jack@mudshark.org>"; 135 136 jefdaj = "Jeffrey David Johnson <jefdaj@gmail.com>";
+27
pkgs/top-level/php-packages.nix
··· 139 139 maintainers = with maintainers; [ globin offline ]; 140 140 }; 141 141 }; 142 + 143 + phpcs = pkgs.stdenv.mkDerivation rec { 144 + name = "phpcs-${version}"; 145 + version = "2.3.4"; 146 + 147 + src = pkgs.fetchurl { 148 + url = "https://github.com/squizlabs/PHP_CodeSniffer/releases/download/${version}/phpcs.phar"; 149 + sha256 = "ce11e02fba30a35a80b691b05be20415eb8b5dea585a4e6646803342b86abb8c"; 150 + }; 151 + 152 + phases = [ "installPhase" ]; 153 + buildInputs = [ pkgs.makeWrapper ]; 154 + 155 + installPhase = '' 156 + mkdir -p $out/bin 157 + install -D $src $out/libexec/phpcs/phpcs.phar 158 + makeWrapper ${php}/bin/php $out/bin/phpcs \ 159 + --add-flags "$out/libexec/phpcs/phpcs.phar" 160 + ''; 161 + 162 + meta = with pkgs.lib; { 163 + description = "PHP coding standard tool"; 164 + license = licenses.bsd3; 165 + homepage = https://squizlabs.github.io/PHP_CodeSniffer/; 166 + maintainers = with maintainers; [ javaguirre ]; 167 + }; 168 + }; 142 169 }; in self