From e83130f2770c314b2a482e1792b010da66cdd5de Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 29 Jun 2023 09:20:54 +0000 Subject: [PATCH] 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. --- pkgs/applications/graphics/gthumb/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/graphics/gthumb/default.nix b/pkgs/applications/graphics/gthumb/default.nix index f0f796ed59f3..114435a22339 100644 --- a/pkgs/applications/graphics/gthumb/default.nix +++ b/pkgs/applications/graphics/gthumb/default.nix @@ -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 = ''