8 , gsettings-desktop-schemas
14 # Currently unsupported. According to upstream, libgovirt is for a very narrow
15 # use-case and we don't currently cover it in Nixpkgs. It's safe to disable.
16 # https://gitlab.com/virt-viewer/virt-viewer/-/issues/100#note_1265011223
17 # Can be enabled again once this is merged:
18 # https://gitlab.com/virt-viewer/virt-viewer/-/merge_requests/129
19 , ovirtSupport ? false
37 stdenv.mkDerivation rec {
38 pname = "virt-viewer";
42 url = "https://releases.pagure.org/virt-viewer/virt-viewer-${version}.tar.xz";
43 sha256 = "sha256-pD+iMlxMHHelyMmAZaww7wURohrJjlkPIjQIabrZq9A=";
47 # Fix build with meson 0.61. Should be fixed in the next release.
48 # https://gitlab.com/virt-viewer/virt-viewer/-/merge_requests/120
50 url = "https://gitlab.com/virt-viewer/virt-viewer/-/commit/98d9f202ef768f22ae21b5c43a080a1aa64a7107.patch";
51 sha256 = "sha256-3AbnkbhWOh0aNjUkmVoSV/9jFQtvTllOr7plnkntb2o=";
69 gsettings-desktop-schemas
76 ] ++ optionals ovirtSupport [
78 ] ++ optionals spiceSupport ([
82 ] ++ optionals stdenv.isLinux [
86 # Required for USB redirection PolicyKit rules file
87 propagatedUserEnvPkgs = optional spiceSupport spice-gtk;
90 (lib.mesonEnable "ovirt" ovirtSupport)
96 patchShebangs build-aux/post_install.py
100 description = "A 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";