mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
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:
parent
9c7486f8a5
commit
2e71139235
|
@ -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"
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue