php.packages.phpstan: 0.12.14 -> 0.12.18

Changelog: https://github.com/phpstan/phpstan/releases/tag/0.12.18

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:20:27 +02:00
parent 9c7486f8a5
commit 1b1d292d3c
No known key found for this signature in database
GPG key ID: D57EFA625C9A925F

View file

@ -203,12 +203,12 @@ in
};
phpstan = mkDerivation rec {
version = "0.12.14";
version = "0.12.18";
pname = "phpstan";
src = pkgs.fetchurl {
url = "https://github.com/phpstan/phpstan/releases/download/${version}/phpstan.phar";
sha256 = "JAq1/+bVhTgKRR7oFusqZ/yBOYewaOM38ZoiCjirsTg=";
sha256 = "0xf0q2z6rhpnbys53si05mddfyjn3wx5wc8zx5y6dv5fzw6z7rch";
};
phases = [ "installPhase" ];
@ -217,7 +217,7 @@ in
installPhase = ''
mkdir -p $out/bin
install -D $src $out/libexec/phpstan/phpstan.phar
makeWrapper ${php}/bin/php $out/bin/phpstan \
makeWrapper ${phpWithExtensions}/bin/php $out/bin/phpstan \
--add-flags "$out/libexec/phpstan/phpstan.phar"
'';