Apply changes recommended by @Mic92

This commit is contained in:
John Boehr 2017-11-09 00:14:27 -08:00
parent 4f3649be76
commit 1cff740488
No known key found for this signature in database
GPG Key ID: 0E23D5B3B8C0421F

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: {