2018-08-24 13:35:32 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, glib, libxml2, gtk3, gtk-vnc, gmp
|
2018-02-25 02:23:58 +00:00
|
|
|
, libgcrypt, gnupg, cyrus_sasl, shared-mime-info, libvirt, yajl, xen
|
2018-08-24 13:59:47 +01:00
|
|
|
, gsettings-desktop-schemas, wrapGAppsHook, libvirt-glib, libcap_ng, numactl
|
2018-05-11 18:49:14 +01:00
|
|
|
, libapparmor, gst_all_1
|
2017-03-28 18:13:39 +01:00
|
|
|
, spiceSupport ? true
|
2018-02-25 02:23:58 +00:00
|
|
|
, spice-gtk ? null, spice-protocol ? null, libcap ? null, gdbm ? null
|
2014-05-10 09:37:59 +01:00
|
|
|
}:
|
2011-01-13 22:30:32 +00:00
|
|
|
|
2014-12-16 08:35:39 +00:00
|
|
|
assert spiceSupport ->
|
2018-02-25 02:23:58 +00:00
|
|
|
spice-gtk != null && spice-protocol != null && libcap != null && gdbm != null;
|
2014-12-16 08:35:39 +00:00
|
|
|
|
2014-05-10 09:37:59 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2015-12-24 12:08:10 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
baseName = "virt-viewer";
|
2018-08-09 20:50:21 +01:00
|
|
|
version = "7.0";
|
2015-12-24 12:08:10 +00:00
|
|
|
name = "${baseName}-${version}";
|
2014-05-10 09:37:59 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-12-24 12:08:10 +00:00
|
|
|
url = "http://virt-manager.org/download/sources/${baseName}/${name}.tar.gz";
|
2018-08-09 20:50:21 +01:00
|
|
|
sha256 = "00y9vi69sja4pkrfnvrkwsscm41bqrjzvp8aijb20pvg6ymczhj7";
|
2011-01-13 22:30:32 +00:00
|
|
|
};
|
|
|
|
|
2018-08-24 13:59:47 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool wrapGAppsHook ];
|
2015-12-24 12:08:10 +00:00
|
|
|
buildInputs = [
|
2018-08-24 13:35:32 +01:00
|
|
|
glib libxml2 gtk3 gtk-vnc gmp libgcrypt gnupg cyrus_sasl shared-mime-info
|
2018-08-24 13:59:47 +01:00
|
|
|
libvirt yajl gsettings-desktop-schemas libvirt-glib
|
2017-12-06 10:55:39 +00:00
|
|
|
libcap_ng numactl libapparmor
|
|
|
|
] ++ optionals stdenv.isx86_64 [
|
|
|
|
xen
|
|
|
|
] ++ optionals spiceSupport [
|
2018-02-25 02:23:58 +00:00
|
|
|
spice-gtk spice-protocol libcap gdbm
|
2018-05-11 18:49:14 +01:00
|
|
|
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
|
2017-12-06 10:55:39 +00: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
|
|
|
}
|