add pdo_pgsql to backend php

Laravel connects to the production postgres database through PDO,
so the runtime interpreter must include pdo_pgsql. Without it,
tide-migrate fails on activation with 'could not find driver' and
phpfpm-tide never starts.
This commit is contained in:
Yisroel Baum 2026-05-08 16:06:34 +03:00
parent dfa5327a2b
commit b8d60d088d

View file

@ -1,6 +1,13 @@
{ php84, lib }: { php84, lib }:
let let
php = php84; # Laravel connects to Postgres via PDO, so the runtime PHP must
# ship pdo_pgsql. The default php84 set ships pdo, pdo_mysql, and
# pdo_sqlite but not pdo_pgsql. buildEnv gives us a php with the
# extra extension that flows through to passthru.php and the
# composer build hooks.
php = php84.buildEnv {
extensions = ({ enabled, all }: enabled ++ [ all.pdo_pgsql ]);
};
in in
php.buildComposerProject (finalAttrs: { php.buildComposerProject (finalAttrs: {
pname = "tide-backend"; pname = "tide-backend";