gthumb: make the webservices feature be optional

upstream describes this feature as:
> Compile extensions that import/export images from web services

many users might only ever browse local images, gaining no benefit from
the webservices but incurring a large closure/rebuild cost via the
dependency on webkitgtk. allow these users to build without webservices.
This commit is contained in:
Colin
2023-09-07 11:49:56 +00:00
parent af654afbfa
commit e83130f277
@@ -21,7 +21,6 @@
, libwebp
, libX11
, json-glib
, webkitgtk
, lcms2
, bison
, flex
@@ -31,6 +30,7 @@
, python3
, desktop-file-utils
, itstool
, withWebservices ? true, webkitgtk
}:
stdenv.mkDerivation rec {
@@ -78,11 +78,11 @@ stdenv.mkDerivation rec {
libtiff
libwebp
libX11
webkitgtk
];
] ++ lib.optional withWebservices webkitgtk;
mesonFlags = [
"-Dlibchamplain=true"
(lib.mesonBool "webservices" withWebservices)
];
postPatch = ''