php: run genfiles
for building extensions too
This commit is contained in:
parent
dd57b3f250
commit
95fd689f85
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user