Skip to content

Commit 7461915

Browse files
committed
Fix pdo extension compilation.
1 parent 9984319 commit 7461915

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
@@ -245,6 +245,20 @@ in
245245
];
246246
in
247247
ourPatches ++ upstreamPatches;
248+
249+
nativeBuildInputs = attrs.nativeBuildInputs ++ [
250+
pkgs.bison
251+
];
252+
253+
postPatch = ''
254+
echo '
255+
# TODO: Add explanation here.
256+
# See https://github.com/fossar/nix-phps/pull/104#issuecomment-1113964195
257+
PHP_PROG_BISON([3.0.0])
258+
PHP_PROG_RE2C([0.13.4])
259+
' | cat - ext/pdo/config.m4 > ext/pdo/config.m4.tmp
260+
mv ext/pdo/config.m4{.tmp,}
261+
'';
248262
});
249263

250264
pdo_mysql =

0 commit comments

Comments
 (0)