2018-08-24 14:35:32 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, glib, libxml2, gtk3, gtk-vnc, gmp
|
2018-02-25 03:23:58 +01:00
|
|
|
, libgcrypt, gnupg, cyrus_sasl, shared-mime-info, libvirt, yajl, xen
|
|
|
|
, gsettings-desktop-schemas, makeWrapper, 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
|
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";
|
2018-08-09 21:50:21 +02:00
|
|
|
version = "7.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";
|
2018-08-09 21:50:21 +02:00
|
|
|
sha256 = "00y9vi69sja4pkrfnvrkwsscm41bqrjzvp8aijb20pvg6ymczhj7";
|
2011-01-13 23:30:32 +01:00
|
|
|
};
|
|
|
|
|
2017-03-28 19:13:39 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
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-02-25 03:23:58 +01:00
|
|
|
libvirt yajl gsettings-desktop-schemas makeWrapper libvirt-glib
|
2017-12-06 11:55:39 +01:00
|
|
|
libcap_ng numactl libapparmor
|
|
|
|
] ++ optionals stdenv.isx86_64 [
|
|
|
|
xen
|
|
|
|
] ++ optionals spiceSupport [
|
2018-02-25 03:23:58 +01:00
|
|
|
spice-gtk spice-protocol libcap gdbm
|
2018-05-11 19:49:14 +02:00
|
|
|
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
|
2017-12-06 11:55:39 +01:00
|
|
|
];
|
2011-01-13 23:30:32 +01:00
|
|
|
|
2014-12-16 14:05:07 +01:00
|
|
|
postInstall = ''
|
|
|
|
for f in "$out"/bin/*; do
|
2018-05-11 19:49:14 +02:00
|
|
|
wrapProgram "$f" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
|
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
|
2014-12-16 14:05:07 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
}
|