From 7e7cf31eac1d2d149c6157fd496b5dc997211249 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Tue, 17 Oct 2023 08:43:22 +0200 Subject: [PATCH] glade: add darwin support --- pkgs/development/tools/glade/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/glade/default.nix b/pkgs/development/tools/glade/default.nix index b7803843c345..97e1cea9c6cd 100644 --- a/pkgs/development/tools/glade/default.nix +++ b/pkgs/development/tools/glade/default.nix @@ -9,6 +9,7 @@ , gtk3 , glib , gjs +, enableWebkit2gtk ? stdenv.isLinux , webkitgtk_4_1 , gobject-introspection , wrapGAppsHook @@ -49,13 +50,18 @@ stdenv.mkDerivation rec { gtk3 glib gjs - webkitgtk_4_1 libxml2 python3 python3.pkgs.pygobject3 gsettings-desktop-schemas gdk-pixbuf gnome.adwaita-icon-theme + ] ++ lib.optionals enableWebkit2gtk [ + webkitgtk_4_1 + ]; + + mesonFlags = [ + (lib.mesonEnable "webkit2gtk" enableWebkit2gtk) ]; postPatch = '' @@ -74,6 +80,6 @@ stdenv.mkDerivation rec { description = "User interface designer for GTK applications"; maintainers = teams.gnome.members; license = licenses.lgpl2; - platforms = platforms.linux; + platforms = platforms.unix; }; }