wt: Permit overriding of optional libraries
This commit is contained in:
parent
a87d46c860
commit
25a0f5a4db
1 changed files with 7 additions and 4 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue