Skip to content

Commit efa3dfb

Browse files
committed
Fix pdo extension compilation.
1 parent 6f23fe6 commit efa3dfb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

pkgs/package-overrides.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,20 @@ in
357357
];
358358
in
359359
ourPatches ++ upstreamPatches;
360+
361+
nativeBuildInputs = attrs.nativeBuildInputs ++ [
362+
pkgs.bison
363+
];
364+
365+
postPatch = ''
366+
echo '
367+
# TODO: Add explanation here.
368+
# See https://github.com/fossar/nix-phps/pull/104#issuecomment-1113964195
369+
PHP_PROG_BISON([3.0.0])
370+
PHP_PROG_RE2C([0.13.4])
371+
' | cat - ext/pdo/config.m4 > ext/pdo/config.m4.tmp
372+
mv ext/pdo/config.m4{.tmp,}
373+
'';
360374
});
361375

362376
pdo_mysql =

0 commit comments

Comments
 (0)