From eea7e3a90dc96201c7329731617133ec77e9ae59 Mon Sep 17 00:00:00 2001 From: Jordan Williams Date: Thu, 14 Nov 2024 10:46:03 -0600 Subject: [PATCH] rygel: make gtk support optional --- pkgs/by-name/ry/rygel/package.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ry/rygel/package.nix b/pkgs/by-name/ry/rygel/package.nix index ef80b1b35a39..2f90692003fc 100644 --- a/pkgs/by-name/ry/rygel/package.nix +++ b/pkgs/by-name/ry/rygel/package.nix @@ -12,7 +12,9 @@ libxslt, gobject-introspection, wrapGAppsHook3, + wrapGAppsNoGuiHook, python3, + gdk-pixbuf, glib, gssdp_1_6, gupnp_1_6, @@ -21,6 +23,8 @@ gst_all_1, libgee, libsoup_3, + libX11, + withGtk ? true, gtk3, libmediaart, pipewire, @@ -60,12 +64,13 @@ stdenv.mkDerivation (finalAttrs: { libxml2 libxslt # for xsltproc gobject-introspection - wrapGAppsHook3 + (if withGtk then wrapGAppsHook3 else wrapGAppsNoGuiHook) python3 ]; buildInputs = [ + gdk-pixbuf glib gssdp_1_6 gupnp_1_6 @@ -76,11 +81,13 @@ stdenv.mkDerivation (finalAttrs: { gtk3 libmediaart pipewire + libX11 sqlite systemd tinysparql shared-mime-info ] + ++ lib.optionals withGtk [ gtk3 ] ++ (with gst_all_1; [ gstreamer gst-editing-services @@ -95,6 +102,7 @@ stdenv.mkDerivation (finalAttrs: { "-Dapi-docs=false" "--sysconfdir=/etc" "-Dsysconfdir_install=${placeholder "out"}/etc" + (lib.mesonEnable "gtk" withGtk) ]; doCheck = true;