9 , gsettings-desktop-schemas
15 # Currently unsupported. According to upstream, libgovirt is for a very narrow
16 # use-case and we don't currently cover it in Nixpkgs. It's safe to disable.
17 # https://gitlab.com/virt-viewer/virt-viewer/-/issues/100#note_1265011223
18 # Can be enabled again once this is merged:
19 # https://gitlab.com/virt-viewer/virt-viewer/-/merge_requests/129
20 , ovirtSupport ? false
35 stdenv.mkDerivation rec {
36 pname = "virt-viewer";
40 url = "https://releases.pagure.org/virt-viewer/virt-viewer-${version}.tar.xz";
41 sha256 = "sha256-pD+iMlxMHHelyMmAZaww7wURohrJjlkPIjQIabrZq9A=";
45 # Fix build with meson 0.61. Should be fixed in the next release.
46 # https://gitlab.com/virt-viewer/virt-viewer/-/merge_requests/120
48 url = "https://gitlab.com/virt-viewer/virt-viewer/-/commit/98d9f202ef768f22ae21b5c43a080a1aa64a7107.patch";
49 sha256 = "sha256-3AbnkbhWOh0aNjUkmVoSV/9jFQtvTllOr7plnkntb2o=";
65 gst_all_1.gst-plugins-base
66 gst_all_1.gst-plugins-good
69 gsettings-desktop-schemas
76 ] ++ lib.optionals ovirtSupport [
78 ] ++ lib.optionals spiceSupport ([
82 ] ++ lib.optionals stdenv.hostPlatform.isLinux [
86 # Required for USB redirection PolicyKit rules file
87 propagatedUserEnvPkgs = lib.optional spiceSupport spice-gtk;
90 (lib.mesonEnable "ovirt" ovirtSupport)
96 patchShebangs build-aux/post_install.py
100 description = "Viewer for remote virtual machines";
101 maintainers = with maintainers; [ raskin atemu ];
102 platforms = with platforms; linux ++ darwin;
103 license = licenses.gpl2;
107 downloadPage = "https://virt-manager.org/download.html";