phpcs: init at 2.3.4

Adding javaguirre to maintainers
wip/yesman
Javier Aguirre 9 years ago
parent 4f1db1f0f8
commit 9522afae2c
  1. 1
      lib/maintainers.nix
  2. 27
      pkgs/top-level/php-packages.nix

@ -130,6 +130,7 @@
iyzsong = "Song Wenwu <iyzsong@gmail.com>";
j-keck = "Jürgen Keck <jhyphenkeck@gmail.com>";
jagajaga = "Arseniy Seroka <ars.seroka@gmail.com>";
javaguirre = "Javier Aguirre <contacto@javaguirre.net>";
jb55 = "William Casarin <bill@casarin.me>";
jcumming = "Jack Cummings <jack@mudshark.org>";
jefdaj = "Jeffrey David Johnson <jefdaj@gmail.com>";

@ -139,4 +139,31 @@ let self = with self; {
maintainers = with maintainers; [ globin offline ];
};
};
phpcs = pkgs.stdenv.mkDerivation rec {
name = "phpcs-${version}";
version = "2.3.4";
src = pkgs.fetchurl {
url = "https://github.com/squizlabs/PHP_CodeSniffer/releases/download/${version}/phpcs.phar";
sha256 = "ce11e02fba30a35a80b691b05be20415eb8b5dea585a4e6646803342b86abb8c";
};
phases = [ "installPhase" ];
buildInputs = [ pkgs.makeWrapper ];
installPhase = ''
mkdir -p $out/bin
install -D $src $out/libexec/phpcs/phpcs.phar
makeWrapper ${php}/bin/php $out/bin/phpcs \
--add-flags "$out/libexec/phpcs/phpcs.phar"
'';
meta = with pkgs.lib; {
description = "PHP coding standard tool";
license = licenses.bsd3;
homepage = https://squizlabs.github.io/PHP_CodeSniffer/;
maintainers = with maintainers; [ javaguirre ];
};
};
}; in self

Loading…
Cancel
Save