Skip to content

Commit

Permalink
phpExtensions.{pdo_,}pgsql: fix build
Browse files Browse the repository at this point in the history
I don't know why, but after the switch to libpq, the builds failed with
an error like

    configure: error: Unable to build the PDO PostgreSQL driver: at least libpq 9.1 is required

and adding `libpq` to build inputs solves the issue.
  • Loading branch information
Ma27 committed Jan 18, 2025
1 parent cfc0545 commit 448a13d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/top-level/php-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ lib.makeScope pkgs.newScope (
{
name = "pdo_pgsql";
internalDeps = [ php.extensions.pdo ];
buildInputs = [ libpq ];
configureFlags = [ "--with-pdo-pgsql=${lib.getDev libpq}" ];
doCheck = false;
}
Expand All @@ -646,7 +647,10 @@ lib.makeScope pkgs.newScope (
}
{
name = "pgsql";
buildInputs = [ pcre2 ];
buildInputs = [
pcre2
libpq
];
configureFlags = [ "--with-pgsql=${lib.getDev libpq}" ];
doCheck = false;
}
Expand Down

0 comments on commit 448a13d

Please sign in to comment.