From b2ae4d5a0ed0578f3bed6424c0ba51fc9dd61a18 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 30 Apr 2022 02:25:22 +0200 Subject: [PATCH] php.mkExtension: Run installPhase pre/post hooks --- pkgs/top-level/php-packages.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index de750079a00c..2210a080a72a 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -129,6 +129,8 @@ lib.makeScope pkgs.newScope (self: with self; { ''; installPhase = '' + runHook preInstall + mkdir -p $out/lib/php/extensions cp modules/${name}.so $out/lib/php/extensions/${name}.so mkdir -p $dev/include @@ -137,6 +139,8 @@ lib.makeScope pkgs.newScope (self: with self; { --filter="- *" \ --prune-empty-dirs \ . $dev/include/ + + runHook postInstall ''; meta = {