From d2282cc4a78f372e4c56238c8bbd434aa1f9e76c Mon Sep 17 00:00:00 2001 From: Arthur Lee Date: Fri, 25 Oct 2019 11:47:50 +0800 Subject: [PATCH] wt: Allow optional library harfbuzz to be overriden with null --- pkgs/development/libraries/wt/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/wt/default.nix b/pkgs/development/libraries/wt/default.nix index b5a7bae68ead..0bffa8ba1a56 100644 --- a/pkgs/development/libraries/wt/default.nix +++ b/pkgs/development/libraries/wt/default.nix @@ -28,13 +28,14 @@ let cmakeFlags = [ "-DWT_CPP_11_MODE=-std=c++11" - "-DHARFBUZZ_INCLUDE_DIR=${harfbuzz.dev}/include" "--no-warn-unused-cli" ] ++ stdenv.lib.optionals (graphicsmagick != null) [ "-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick" "-DGM_PREFIX=${graphicsmagick}" ] + ++ stdenv.lib.optional (harfbuzz != null) + "-DHARFBUZZ_INCLUDE_DIR=${harfbuzz.dev}/include" ++ stdenv.lib.optional (libmysqlclient != null) "-DMYSQL_PREFIX=${libmysqlclient}";