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
1 changed files with 3 additions and 3 deletions

View File

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