Apply changes recommended by @Mic92

This commit is contained in:
John Boehr
2017-11-09 00:14:27 -08:00
parent 4f3649be76
commit 1cff740488

View File

@@ -12,7 +12,7 @@ let
let php7 = lib.versionAtLeast version "7.0";
mysqlHeaders = mysql.lib.dev or mysql;
mysqlndSupport = config.php.mysqlnd or false;
mysqlBuildInputs = if mysqlndSupport then [] else [ mysqlHeaders ];
mysqlBuildInputs = lib.optional (!mysqlndSupport) mysqlHeaders;
in composableDerivation.composableDerivation {} (fixed: {