php.packages.phpcbf: 3.5.3 -> 3.5.4

Changelog:
https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.5.4

Also switch to phpWithExtensions because it complained about missing
extensions when running the binary.
This commit is contained in:
Elis Hirwing 2020-04-14 15:14:26 +02:00
parent 9c7486f8a5
commit 2e71139235
No known key found for this signature in database
GPG key ID: D57EFA625C9A925F

View file

@ -149,12 +149,12 @@ in
};
phpcbf = mkDerivation rec {
version = "3.5.3";
version = "3.5.4";
pname = "phpcbf";
src = pkgs.fetchurl {
url = "https://github.com/squizlabs/PHP_CodeSniffer/releases/download/${version}/phpcbf.phar";
sha256 = "1mrsf9p6p64pyqyylnlxb2b7cirdfccch83g7yhfnka3znffq86v";
sha256 = "18x7fk59l821pivw1i2r868y78qgs0qk47b9il1smwi6plwyyflr";
};
phases = [ "installPhase" ];
@ -163,7 +163,7 @@ in
installPhase = ''
mkdir -p $out/bin
install -D $src $out/libexec/phpcbf/phpcbf.phar
makeWrapper ${php}/bin/php $out/bin/phpcbf \
makeWrapper ${phpWithExtensions}/bin/php $out/bin/phpcbf \
--add-flags "$out/libexec/phpcbf/phpcbf.phar"
'';