From fa6edb453d0c08131c60531e5d3f3c8078795861 Mon Sep 17 00:00:00 2001 From: marchenstar <12461256+marchenstar@users.noreply.github.com> Date: Tue, 3 Dec 2024 12:30:24 +0530 Subject: [PATCH] virt-manager: Add back gstreamer plugins Add back gstreamer plugins to virt-manager buildInputs for spice functionality. This was removed in commit 7c9fe1b04cd7f0b356d229f6d7d97acf40940ff8 and causes spice display to fail on kde with an error, when GST_PLUGINS_PATH is not set. Error connecting to graphical console: Error opening SPICE console: Typelib file for namespace 'GstBase', version '1.0' not found --- .../virtualization/virt-manager/default.nix | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/pkgs/applications/virtualization/virt-manager/default.nix b/pkgs/applications/virtualization/virt-manager/default.nix index 41097758f56f..59f64cc47c10 100644 --- a/pkgs/applications/virtualization/virt-manager/default.nix +++ b/pkgs/applications/virtualization/virt-manager/default.nix @@ -21,6 +21,7 @@ xorriso, spiceSupport ? true, spice-gtk ? null, + gst_all_1 ? null, }: let @@ -57,18 +58,23 @@ stdenv.mkDerivation rec { pkg-config ] ++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle; - buildInputs = [ - python3 - libvirt-glib - vte - dconf - gtk-vnc - adwaita-icon-theme - gsettings-desktop-schemas - libosinfo - gtksourceview4 - ] ++ lib.optional spiceSupport spice-gtk; - + buildInputs = + [ + python3 + libvirt-glib + vte + dconf + gtk-vnc + adwaita-icon-theme + gsettings-desktop-schemas + libosinfo + gtksourceview4 + ] + ++ lib.optionals spiceSupport [ + gst_all_1.gst-plugins-base + gst_all_1.gst-plugins-good + spice-gtk + ]; preFixup = '' glib-compile-schemas $out/share/gsettings-schemas/${pname}-${version}/glib-2.0/schemas