diff options
author | Arthur Lee <me@arthur.li> | 2019-10-18 17:13:07 +0800 |
---|---|---|
committer | Arthur Lee <me@arthur.li> | 2019-10-18 17:13:07 +0800 |
commit | 25a0f5a4dbadbf3d387a6bdb30b72f051b3b1506 (patch) | |
tree | fa571605b69f743d2e7998b0a5725e4da8bc43be | |
parent | a87d46c8606b4af8b4fe296dfc3ddaf41e0e6b15 (diff) |
wt: Permit overriding of optional libraries
-rw-r--r-- | pkgs/development/libraries/wt/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/development/libraries/wt/default.nix b/pkgs/development/libraries/wt/default.nix index 31fa104fb059d..b5a7bae68eadd 100644 --- a/pkgs/development/libraries/wt/default.nix +++ b/pkgs/development/libraries/wt/default.nix @@ -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"; |