From 9ee851341fccb9476e7c26b8e5662a40091f05d1 Mon Sep 17 00:00:00 2001 From: Lily Foster Date: Fri, 12 Jan 2024 13:21:48 -0500 Subject: [PATCH] webkitgtk: add support for experimental features --- pkgs/development/libraries/webkitgtk/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/webkitgtk/default.nix b/pkgs/development/libraries/webkitgtk/default.nix index 7104f6c3c851..0d80e8f88606 100644 --- a/pkgs/development/libraries/webkitgtk/default.nix +++ b/pkgs/development/libraries/webkitgtk/default.nix @@ -50,6 +50,8 @@ , libmanette , openjpeg , geoclue2 +, flite +, openssl , sqlite , gst-plugins-base , gst-plugins-bad @@ -63,6 +65,7 @@ , unifdef , addOpenGLRunpath , enableGeoLocation ? true +, enableExperimental ? false , withLibsecret ? true , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd , testers @@ -181,6 +184,9 @@ stdenv.mkDerivation (finalAttrs: { systemd ] ++ lib.optionals enableGeoLocation [ geoclue2 + ] ++ lib.optionals enableExperimental [ + flite + openssl ] ++ lib.optionals withLibsecret [ libsecret ] ++ lib.optionals (lib.versionAtLeast gtk3.version "4.0") [ @@ -201,6 +207,7 @@ stdenv.mkDerivation (finalAttrs: { "-DUSE_LIBHYPHEN=OFF" "-DUSE_SOUP2=${cmakeBool (lib.versions.major libsoup.version == "2")}" "-DUSE_LIBSECRET=${cmakeBool withLibsecret}" + "-DENABLE_EXPERIMENTAL_FEATURES=${cmakeBool enableExperimental}" ] ++ lib.optionals stdenv.isLinux [ # Have to be explicitly specified when cross. # https://github.com/WebKit/WebKit/commit/a84036c6d1d66d723f217a4c29eee76f2039a353