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
38 stdenv.mkDerivation rec {
39 pname = "virt-viewer";
43 url = "https://releases.pagure.org/virt-viewer/virt-viewer-${version}.tar.xz";
44 sha256 = "sha256-pD+iMlxMHHelyMmAZaww7wURohrJjlkPIjQIabrZq9A=";
48 # Fix build with meson 0.61. Should be fixed in the next release.
49 # https://gitlab.com/virt-viewer/virt-viewer/-/merge_requests/120
51 url = "https://gitlab.com/virt-viewer/virt-viewer/-/commit/98d9f202ef768f22ae21b5c43a080a1aa64a7107.patch";
52 sha256 = "sha256-3AbnkbhWOh0aNjUkmVoSV/9jFQtvTllOr7plnkntb2o=";
68 gst_all_1.gst-plugins-base
69 gst_all_1.gst-plugins-good
72 gsettings-desktop-schemas
79 ] ++ optionals ovirtSupport [
81 ] ++ optionals spiceSupport ([
85 ] ++ optionals stdenv.isLinux [
89 # Required for USB redirection PolicyKit rules file
90 propagatedUserEnvPkgs = optional spiceSupport spice-gtk;
93 (lib.mesonEnable "ovirt" ovirtSupport)
99 patchShebangs build-aux/post_install.py
103 description = "A viewer for remote virtual machines";
104 maintainers = with maintainers; [ raskin atemu ];
105 platforms = with platforms; linux ++ darwin;
106 license = licenses.gpl2;
110 downloadPage = "https://virt-manager.org/download.html";