diff options
author | William A. Kennington III <william@wkennington.com> | 2015-10-15 10:22:28 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2015-10-15 10:22:28 -0700 |
commit | 8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36 (patch) | |
tree | 90013bf1e284372e7de0ad6b3715dc5a0ea926d1 /pkgs/top-level/php-packages.nix | |
parent | 1283e3da5d0bc4657677d40fa3cb117b66489ee5 (diff) | |
parent | 62e676b9598d2638e846761160082f6fec392ffe (diff) | |
download | nixpkgs-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar nixpkgs-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.gz nixpkgs-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.bz2 nixpkgs-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.lz nixpkgs-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.xz nixpkgs-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.tar.zst nixpkgs-8a44a36ca496d2c61904b22f8ba6a77ec5aa0b36.zip |
Merge branch 'master.upstream' into staging.upstream
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 e9f2d145226..96c4ab06a51 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 |