wt: Allow optional library harfbuzz to be overriden with null

This commit is contained in:
Arthur Lee 2019-10-25 11:47:50 +08:00
parent e2383999f0
commit d2282cc4a7

View file

@ -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}";