wt: Permit overriding of optional libraries

This commit is contained in:
Arthur Lee 2019-10-18 17:13:07 +08:00
parent a87d46c860
commit 25a0f5a4db

View file

@ -27,13 +27,16 @@ let
];
cmakeFlags = [
"-DWT_WRASTERIMAGE_IMPLEMENTATION=GraphicsMagick"
"-DWT_CPP_11_MODE=-std=c++11"
"-DGM_PREFIX=${graphicsmagick}"
"-DMYSQL_PREFIX=${libmysqlclient}"
"-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 (libmysqlclient != null)
"-DMYSQL_PREFIX=${libmysqlclient}";
meta = with stdenv.lib; {
homepage = "https://www.webtoolkit.eu/wt";