2018-08-24 14:35:32 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, glib, libxml2, gtk3, gtk-vnc, gmp
|
2019-08-23 02:02:50 +02:00
|
|
|
, libgcrypt, gnupg, cyrus_sasl, shared-mime-info, libvirt, yajl
|
2018-08-24 14:59:47 +02:00
|
|
|
, gsettings-desktop-schemas, wrapGAppsHook, libvirt-glib, libcap_ng, numactl
|
2018-05-11 19:49:14 +02:00
|
|
|
, libapparmor, gst_all_1
|
2017-03-28 19:13:39 +02:00
|
|
|
, spiceSupport ? true
|
2018-02-25 03:23:58 +01:00
|
|
|
, spice-gtk ? null, spice-protocol ? null, libcap ? null, gdbm ? null
|
2019-08-23 02:02:50 +02:00
|
|
|
, xenSupport ? false, xen ? null
|
2014-05-10 10:37:59 +02:00
|
|
|
}:
|
2011-01-13 23:30:32 +01:00
|
|
|
|
2014-12-16 09:35:39 +01:00
|
|
|
assert spiceSupport ->
|
2018-02-25 03:23:58 +01:00
|
|
|
spice-gtk != null && spice-protocol != null && libcap != null && gdbm != null;
|
2014-12-16 09:35:39 +01:00
|
|
|
|
2014-05-10 10:37:59 +02:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2015-12-24 13:08:10 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
baseName = "virt-viewer";
|
2019-03-12 10:09:33 +01:00
|
|
|
version = "8.0";
|
2015-12-24 13:08:10 +01:00
|
|
|
name = "${baseName}-${version}";
|
2014-05-10 10:37:59 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-12-24 13:08:10 +01:00
|
|
|
url = "http://virt-manager.org/download/sources/${baseName}/${name}.tar.gz";
|
2019-03-12 10:09:33 +01:00
|
|
|
sha256 = "1vdnjmhrva7r1n9nv09j8gc12hy0j9j5l4rka4hh0jbsbpnmiwyw";
|
2011-01-13 23:30:32 +01:00
|
|
|
};
|
|
|
|
|
2018-08-24 14:59:47 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool wrapGAppsHook ];
|
2015-12-24 13:08:10 +01:00
|
|
|
buildInputs = [
|
2018-08-24 14:35:32 +02:00
|
|
|
glib libxml2 gtk3 gtk-vnc gmp libgcrypt gnupg cyrus_sasl shared-mime-info
|
2018-08-24 14:59:47 +02:00
|
|
|
libvirt yajl gsettings-desktop-schemas libvirt-glib
|
2017-12-06 11:55:39 +01:00
|
|
|
libcap_ng numactl libapparmor
|
2019-08-23 02:02:50 +02:00
|
|
|
] ++ optionals xenSupport [
|
2017-12-06 11:55:39 +01:00
|
|
|
xen
|
|
|
|
] ++ optionals spiceSupport [
|
2018-02-25 03:23:58 +01:00
|
|
|
spice-gtk spice-protocol libcap gdbm
|
2017-12-06 11:55:39 +01:00
|
|
|
];
|
2011-01-13 23:30:32 +01:00
|
|
|
|
2019-01-26 16:58:16 +01:00
|
|
|
# Required for USB redirection PolicyKit rules file
|
|
|
|
propagatedUserEnvPkgs = optional spiceSupport spice-gtk;
|
|
|
|
|
2011-01-13 23:30:32 +01:00
|
|
|
meta = {
|
|
|
|
description = "A viewer for remote virtual machines";
|
2014-09-13 13:51:39 +02:00
|
|
|
maintainers = [ maintainers.raskin ];
|
2014-05-10 10:37:59 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
2011-01-13 23:30:32 +01:00
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://virt-manager.org/download.html";
|
|
|
|
};
|
|
|
|
};
|
2014-05-10 10:37:59 +02:00
|
|
|
}
|