php.mkExtension: Run installPhase pre/post hooks
This commit is contained in:
parent
497d46b012
commit
b2ae4d5a0e
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue