Skip to content

Commit c220ea0

Browse files
committed
Fix pdo extension compilation.
1 parent 68f974a commit c220ea0

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
@@ -573,6 +573,20 @@ in
573573
];
574574
in
575575
ourPatches ++ upstreamPatches;
576+
577+
nativeBuildInputs = attrs.nativeBuildInputs ++ [
578+
pkgs.bison
579+
];
580+
581+
postPatch = ''
582+
echo '
583+
# TODO: Add explanation here.
584+
# See https://github.com/fossar/nix-phps/pull/104#issuecomment-1113964195
585+
PHP_PROG_BISON([3.0.0])
586+
PHP_PROG_RE2C([0.13.4])
587+
' | cat - ext/pdo/config.m4 > ext/pdo/config.m4.tmp
588+
mv ext/pdo/config.m4{.tmp,}
589+
'';
576590
});
577591

578592
pdo_mysql =

0 commit comments

Comments
 (0)