Skip to content

Commit ed447ee

Browse files
drupoljtojnar
authored andcommitted
Fix pdo extension compilation.
1 parent ddc42d6 commit ed447ee

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
@@ -320,6 +320,20 @@ in
320320
];
321321
in
322322
ourPatches ++ upstreamPatches;
323+
324+
nativeBuildInputs = attrs.nativeBuildInputs ++ [
325+
pkgs.bison
326+
];
327+
328+
postPatch = ''
329+
echo '
330+
# TODO: Add explanation here.
331+
# See https://github.com/fossar/nix-phps/pull/104#issuecomment-1113964195
332+
PHP_PROG_BISON([3.0.0])
333+
PHP_PROG_RE2C([0.13.4])
334+
' | cat - ext/pdo/config.m4 > ext/pdo/config.m4.tmp
335+
mv ext/pdo/config.m4{.tmp,}
336+
'';
323337
});
324338

325339
pdo_mysql =

0 commit comments

Comments
 (0)