php: run genfiles for building extensions too

This commit is contained in:
Pol Dellaiera 2023-09-08 12:37:24 +02:00
parent dd57b3f250
commit 95fd689f85

View file

@ -31,6 +31,7 @@
, pam
, pcre2
, postgresql
, bison
, re2c
, readline
, rsync
@ -101,14 +102,22 @@ lib.makeScope pkgs.newScope (self: with self; {
autoconf
pkg-config
re2c
bison
];
inherit configureFlags internalDeps buildInputs zendExtension doCheck;
preConfigurePhases = [
"genfiles"
"cdToExtensionRootPhase"
];
genfiles = ''
if [ -f "scripts/dev/genfiles" ]; then
./scripts/dev/genfiles
fi
'';
cdToExtensionRootPhase = ''
# Go to extension source root.
cd "ext/${extName}"