|
|
|
@ -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"; |
|
|
|
|