diff options
author | Javier Aguirre <contacto@javaguirre.net> | 2015-10-12 11:44:48 +0200 |
---|---|---|
committer | Javier Aguirre <contacto@javaguirre.net> | 2015-10-12 12:11:54 +0200 |
commit | 9522afae2cc3fbaefb1d3ede889f9a28fc1614b5 (patch) | |
tree | c926ae96b0bf1762780498eb9e710f0114bde8c7 /pkgs/top-level/php-packages.nix | |
parent | 4f1db1f0f85a1dc623816c1581354ad4467adafd (diff) | |
download | nixlib-9522afae2cc3fbaefb1d3ede889f9a28fc1614b5.tar nixlib-9522afae2cc3fbaefb1d3ede889f9a28fc1614b5.tar.gz nixlib-9522afae2cc3fbaefb1d3ede889f9a28fc1614b5.tar.bz2 nixlib-9522afae2cc3fbaefb1d3ede889f9a28fc1614b5.tar.lz nixlib-9522afae2cc3fbaefb1d3ede889f9a28fc1614b5.tar.xz nixlib-9522afae2cc3fbaefb1d3ede889f9a28fc1614b5.tar.zst nixlib-9522afae2cc3fbaefb1d3ede889f9a28fc1614b5.zip |
phpcs: init at 2.3.4
Adding javaguirre to maintainers
Diffstat (limited to 'pkgs/top-level/php-packages.nix')
-rw-r--r-- | pkgs/top-level/php-packages.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index e9f2d145226e..96c4ab06a510 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -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 |