mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
phpPackages.php-cs-fixer: init at 2.8.3
This commit is contained in:
parent
5d21268e80
commit
019131c826
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user