mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 00:10:30 +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 {
|
phpcbf = mkDerivation rec {
|
||||||
version = "3.5.3";
|
version = "3.5.4";
|
||||||
pname = "phpcbf";
|
pname = "phpcbf";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
url = "https://github.com/squizlabs/PHP_CodeSniffer/releases/download/${version}/phpcbf.phar";
|
url = "https://github.com/squizlabs/PHP_CodeSniffer/releases/download/${version}/phpcbf.phar";
|
||||||
sha256 = "1mrsf9p6p64pyqyylnlxb2b7cirdfccch83g7yhfnka3znffq86v";
|
sha256 = "18x7fk59l821pivw1i2r868y78qgs0qk47b9il1smwi6plwyyflr";
|
||||||
};
|
};
|
||||||
|
|
||||||
phases = [ "installPhase" ];
|
phases = [ "installPhase" ];
|
||||||
|
@ -163,7 +163,7 @@ in
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
install -D $src $out/libexec/phpcbf/phpcbf.phar
|
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"
|
--add-flags "$out/libexec/phpcbf/phpcbf.phar"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue