Skip to content

Commit

Permalink
Fix pdo extension compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jun 25, 2022
1 parent 6f23fe6 commit efa3dfb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkgs/package-overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,20 @@ in
];
in
ourPatches ++ upstreamPatches;

nativeBuildInputs = attrs.nativeBuildInputs ++ [
pkgs.bison
];

postPatch = ''
echo '
# TODO: Add explanation here.
# See https://github.com/fossar/nix-phps/pull/104#issuecomment-1113964195
PHP_PROG_BISON([3.0.0])
PHP_PROG_RE2C([0.13.4])
' | cat - ext/pdo/config.m4 > ext/pdo/config.m4.tmp
mv ext/pdo/config.m4{.tmp,}
'';
});

pdo_mysql =
Expand Down

0 comments on commit efa3dfb

Please sign in to comment.