From 12741f2c302730c6a24289abb8ce0a6c33c8f6dc Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 16 Oct 2023 17:13:34 +0200 Subject: [PATCH] build-support/php: add `installCheckPhase` --- pkgs/build-support/php/build-composer-project.nix | 6 ++++++ pkgs/build-support/php/build-composer-repository.nix | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/pkgs/build-support/php/build-composer-project.nix b/pkgs/build-support/php/build-composer-project.nix index 6aecf4345773..5cb52e902cd6 100644 --- a/pkgs/build-support/php/build-composer-project.nix +++ b/pkgs/build-support/php/build-composer-project.nix @@ -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; diff --git a/pkgs/build-support/php/build-composer-repository.nix b/pkgs/build-support/php/build-composer-repository.nix index 30b0b48de751..c89688ecc192 100644 --- a/pkgs/build-support/php/build-composer-repository.nix +++ b/pkgs/build-support/php/build-composer-repository.nix @@ -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";