Merge pull request #31170 from jbboehr/php-mysqlnd-m
php: add config.php.mysqlnd option
This commit is contained in:
commit
4b6f20c56f
@ -11,6 +11,8 @@ let
|
|||||||
|
|
||||||
let php7 = lib.versionAtLeast version "7.0";
|
let php7 = lib.versionAtLeast version "7.0";
|
||||||
mysqlHeaders = mysql.lib.dev or mysql;
|
mysqlHeaders = mysql.lib.dev or mysql;
|
||||||
|
mysqlndSupport = config.php.mysqlnd or false;
|
||||||
|
mysqlBuildInputs = lib.optional (!mysqlndSupport) mysqlHeaders;
|
||||||
|
|
||||||
in composableDerivation.composableDerivation {} (fixed: {
|
in composableDerivation.composableDerivation {} (fixed: {
|
||||||
|
|
||||||
@ -112,13 +114,13 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
mysql = {
|
mysql = {
|
||||||
configureFlags = ["--with-mysql"];
|
configureFlags = ["--with-mysql${if mysqlndSupport then "=mysqlnd" else ""}"];
|
||||||
buildInputs = [ mysqlHeaders ];
|
buildInputs = mysqlBuildInputs;
|
||||||
};
|
};
|
||||||
|
|
||||||
mysqli = {
|
mysqli = {
|
||||||
configureFlags = ["--with-mysqli=${mysqlHeaders}/bin/mysql_config"];
|
configureFlags = ["--with-mysqli=${if mysqlndSupport then "mysqlnd" else "${mysqlHeaders}/bin/mysql_config"}"];
|
||||||
buildInputs = [ mysqlHeaders ];
|
buildInputs = mysqlBuildInputs;
|
||||||
};
|
};
|
||||||
|
|
||||||
mysqli_embedded = {
|
mysqli_embedded = {
|
||||||
@ -128,8 +130,8 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
pdo_mysql = {
|
pdo_mysql = {
|
||||||
configureFlags = ["--with-pdo-mysql=${mysqlHeaders}"];
|
configureFlags = ["--with-pdo-mysql=${if mysqlndSupport then "mysqlnd" else mysqlHeaders}"];
|
||||||
buildInputs = [ mysqlHeaders ];
|
buildInputs = mysqlBuildInputs;
|
||||||
};
|
};
|
||||||
|
|
||||||
bcmath = {
|
bcmath = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user