php.packages: Add missing hooks.

This commit is contained in:
Pol Dellaiera
2022-03-13 18:10:27 +01:00
parent a6aceda140
commit 40195e1c4e
11 changed files with 24 additions and 0 deletions
@@ -16,10 +16,12 @@ mkDerivation {
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -D $src $out/libexec/phpstan/phpstan.phar
makeWrapper ${php}/bin/php $out/bin/phpstan \
--add-flags "$out/libexec/phpstan/phpstan.phar"
runHook postInstall
'';
meta = with lib; {