build-support/php: add installCheckPhase

This commit is contained in:
Pol Dellaiera 2023-10-16 17:13:34 +02:00
parent 6b37f75089
commit 12741f2c30
2 changed files with 12 additions and 0 deletions

View file

@ -53,6 +53,12 @@ let
runHook postInstall
'';
installCheckPhase = previousAttrs.installCheckPhase or ''
runHook preCheckInstall
runHook postCheckInstall
'';
composerRepository = phpDrv.mkComposerRepository {
inherit composer composer-local-repo-plugin;
inherit (finalAttrs) patches pname src vendorHash version;

View file

@ -74,6 +74,12 @@ let
runHook postInstall
'';
installCheckPhase = previousAttrs.installCheckPhase or ''
runHook preCheckInstall
runHook postCheckInstall
'';
COMPOSER_CACHE_DIR = "/dev/null";
COMPOSER_MIRROR_PATH_REPOS = "1";
COMPOSER_HTACCESS_PROTECT = "0";