@@ -2,7 +2,7 @@
22{ lib, stdenv, fetchurl, flex, bison, autoconf
33, mysql, libxml2, readline, zlib, curl, postgresql, gettext
44, openssl, pcre, pcre2, pkgconfig, sqlite, config, libjpeg, libpng, freetype
5−, libxslt, libmcrypt, bzip2, icu, openldap, cyrus_sasl, libmhash
5+, libxslt, libmcrypt, bzip2, icu, openldap, cyrus_sasl, libmhash, unixODBC
66, uwimap, pam, gmp, apacheHttpd, libiconv, systemd, libsodium, html-tidy, libargon2, libzip
77}:
88
@@ -28,6 +28,7 @@ let
2828 , curlSupport ? config.php.curl or true
2929 , gettextSupport ? config.php.gettext or true
3030 , pcntlSupport ? config.php.pcntl or true
31+ , pdo_odbcSupport ? config.php.pdo_odbc or true
3132 , postgresqlSupport ? config.php.postgresql or true
3233 , pdo_pgsqlSupport ? config.php.pdo_pgsql or true
3334 , readlineSupport ? config.php.readline or true
@@ -88,6 +89,7 @@ let
8889 ++ optional readlineSupport readline
8990 ++ optional sqliteSupport sqlite
9091 ++ optional postgresqlSupport postgresql
92+ ++ optional pdo_odbcSupport unixODBC
9193 ++ optional pdo_pgsqlSupport postgresql
9294 ++ optional pdo_mysqlSupport mysqlBuildInputs
9395 ++ optional mysqliSupport mysqlBuildInputs
@@ -141,6 +143,7 @@ let
141143 ++ optional readlineSupport "--with-readline=${readline.dev}"
142144 ++ optional sqliteSupport "--with-pdo-sqlite=${sqlite.dev}"
143145 ++ optional postgresqlSupport "--with-pgsql=${postgresql}"
146+ ++ optional pdo_odbcSupport "--with-pdo-odbc=unixODBC,${unixODBC}"
144147 ++ optional pdo_pgsqlSupport "--with-pdo-pgsql=${postgresql}"
145148 ++ optional pdo_mysqlSupport "--with-pdo-mysql=${if mysqlndSupport then "mysqlnd" else mysql.connector-c}"
146149 ++ optionals mysqliSupport [