phpPackages.php-cs-fixer: init at 2.8.3

This commit is contained in:
Jan Tojnar 2017-12-06 16:11:28 +01:00
parent 5d21268e80
commit 019131c826
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -347,6 +347,33 @@ let
};
};
php-cs-fixer = pkgs.stdenv.mkDerivation rec {
name = "php-cs-fixer-${version}";
version = "2.8.3";
src = pkgs.fetchurl {
url = "https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v${version}/php-cs-fixer.phar";
sha256 = "1bzf9h9zcgqg5b0hjm4dv4g0ndndalbkrsiwqy8s1w8mrrkxi2im";
};
phases = [ "installPhase" ];
buildInputs = [ pkgs.makeWrapper ];
installPhase = ''
mkdir -p $out/bin
install -D $src $out/libexec/php-cs-fixer/php-cs-fixer.phar
makeWrapper ${php}/bin/php $out/bin/php-cs-fixer \
--add-flags "$out/libexec/php-cs-fixer/php-cs-fixer.phar"
'';
meta = with pkgs.lib; {
description = "A tool to automatically fix PHP coding standards issues";
license = licenses.mit;
homepage = http://cs.sensiolabs.org/;
maintainers = with maintainers; [ jtojnar ];
};
};
phpcs = pkgs.stdenv.mkDerivation rec {
name = "phpcs-${version}";
version = "2.6.0";