From 1cff740488834d1c91328f00c727bfb15f6f3afa Mon Sep 17 00:00:00 2001 From: John Boehr Date: Thu, 9 Nov 2017 00:14:27 -0800 Subject: [PATCH] Apply changes recommended by @Mic92 --- pkgs/development/interpreters/php/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix index 7be3cbd5effa..de8ab8b71813 100644 --- a/pkgs/development/interpreters/php/default.nix +++ b/pkgs/development/interpreters/php/default.nix @@ -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: {