2022-02-14 23:42:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-02-15 00:08:11 +00:00
|
|
|
, bash-completion
|
2022-02-14 23:42:22 +00:00
|
|
|
, fetchurl
|
2022-03-30 12:47:00 +01:00
|
|
|
, fetchpatch
|
2022-02-14 23:42:22 +00:00
|
|
|
, gdbm ? null
|
|
|
|
, glib
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk-vnc
|
|
|
|
, gtk3
|
|
|
|
, intltool
|
|
|
|
, libcap ? null
|
2022-02-15 00:08:11 +00:00
|
|
|
, libgovirt
|
2022-02-14 23:42:22 +00:00
|
|
|
, libvirt
|
|
|
|
, libvirt-glib
|
|
|
|
, libxml2
|
2022-02-15 00:08:11 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2022-02-14 23:42:22 +00:00
|
|
|
, pkg-config
|
2022-02-15 00:08:11 +00:00
|
|
|
, python3
|
2022-02-14 23:42:22 +00:00
|
|
|
, shared-mime-info
|
|
|
|
, spice-gtk ? null
|
|
|
|
, spice-protocol ? null
|
2017-03-28 18:13:39 +01:00
|
|
|
, spiceSupport ? true
|
2022-02-14 23:42:22 +00:00
|
|
|
, vte
|
|
|
|
, wrapGAppsHook
|
2014-05-10 09:37:59 +01:00
|
|
|
}:
|
2011-01-13 22:30:32 +00:00
|
|
|
|
2022-02-14 23:42:22 +00:00
|
|
|
assert spiceSupport -> (
|
|
|
|
gdbm != null
|
|
|
|
&& libcap != null
|
|
|
|
&& spice-gtk != null
|
|
|
|
&& spice-protocol != null
|
|
|
|
);
|
2014-12-16 08:35:39 +00:00
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
with lib;
|
2014-05-10 09:37:59 +01:00
|
|
|
|
2015-12-24 12:08:10 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-03-07 11:37:20 +00:00
|
|
|
pname = "virt-viewer";
|
2022-02-15 00:08:11 +00:00
|
|
|
version = "11.0";
|
2014-05-10 09:37:59 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-03-07 11:37:20 +00:00
|
|
|
url = "https://releases.pagure.org/virt-viewer/virt-viewer-${version}.tar.xz";
|
2022-02-15 00:08:11 +00:00
|
|
|
sha256 = "sha256-pD+iMlxMHHelyMmAZaww7wURohrJjlkPIjQIabrZq9A=";
|
2011-01-13 22:30:32 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 12:47:00 +01:00
|
|
|
patches = [
|
|
|
|
# Fix build with meson 0.61
|
|
|
|
# https://gitlab.com/virt-viewer/virt-viewer/-/merge_requests/117
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.com/virt-viewer/virt-viewer/-/commit/ed19e51407bee53988878a6ebed4e7279d00b1a1.patch";
|
|
|
|
sha256 = "sha256-3AbnkbhWOh0aNjUkmVoSV/9jFQtvTllOr7plnkntb2o=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-02-14 23:42:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
glib
|
|
|
|
intltool
|
2022-02-15 00:08:11 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2022-02-14 23:42:22 +00:00
|
|
|
pkg-config
|
2022-02-15 00:08:11 +00:00
|
|
|
python3
|
2022-02-14 23:42:22 +00:00
|
|
|
shared-mime-info
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
2015-12-24 12:08:10 +00:00
|
|
|
buildInputs = [
|
2022-02-15 00:08:11 +00:00
|
|
|
bash-completion
|
2022-02-14 23:42:22 +00:00
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gtk-vnc
|
|
|
|
gtk3
|
2022-02-15 00:08:11 +00:00
|
|
|
libgovirt
|
2022-02-14 23:42:22 +00:00
|
|
|
libvirt
|
|
|
|
libvirt-glib
|
|
|
|
libxml2
|
|
|
|
vte
|
2017-12-06 10:55:39 +00:00
|
|
|
] ++ optionals spiceSupport [
|
2022-02-14 23:42:22 +00:00
|
|
|
gdbm
|
|
|
|
libcap
|
|
|
|
spice-gtk
|
|
|
|
spice-protocol
|
2017-12-06 10:55:39 +00:00
|
|
|
];
|
2011-01-13 22:30:32 +00:00
|
|
|
|
2019-01-26 15:58:16 +00:00
|
|
|
# Required for USB redirection PolicyKit rules file
|
|
|
|
propagatedUserEnvPkgs = optional spiceSupport spice-gtk;
|
|
|
|
|
2019-08-20 19:48:38 +01:00
|
|
|
strictDeps = true;
|
2022-02-15 00:08:11 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux/post_install.py
|
|
|
|
'';
|
2019-08-20 19:48:38 +01:00
|
|
|
|
2011-01-13 22:30:32 +00:00
|
|
|
meta = {
|
|
|
|
description = "A viewer for remote virtual machines";
|
2014-09-13 12:51:39 +01:00
|
|
|
maintainers = [ maintainers.raskin ];
|
2014-05-10 09:37:59 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2011-01-13 22:30:32 +00:00
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://virt-manager.org/download.html";
|
|
|
|
};
|
|
|
|
};
|
2014-05-10 09:37:59 +01:00
|
|
|
}
|