2018-08-24 12:35:32 +00: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
|
|
|
|
, gsettings-desktop-schemas, makeWrapper, libvirt-glib, libcap_ng, numactl
|
2018-05-11 17:49:14 +00:00
|
|
|
, libapparmor, gst_all_1
|
2017-03-28 17:13:39 +00:00
|
|
|
, spiceSupport ? true
|
2018-02-25 02:23:58 +00:00
|
|
|
, spice-gtk ? null, spice-protocol ? null, libcap ? null, gdbm ? null
|
2014-05-10 08:37:59 +00: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 08:37:59 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2015-12-24 12:08:10 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
baseName = "virt-viewer";
|
2018-08-09 19:50:21 +00:00
|
|
|
version = "7.0";
|
2015-12-24 12:08:10 +00:00
|
|
|
name = "${baseName}-${version}";
|
2014-05-10 08:37:59 +00: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 19:50:21 +00:00
|
|
|
sha256 = "00y9vi69sja4pkrfnvrkwsscm41bqrjzvp8aijb20pvg6ymczhj7";
|
2011-01-13 22:30:32 +00:00
|
|
|
};
|
|
|
|
|
2017-03-28 17:13:39 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
2015-12-24 12:08:10 +00:00
|
|
|
buildInputs = [
|
2018-08-24 12:35:32 +00:00
|
|
|
glib libxml2 gtk3 gtk-vnc gmp libgcrypt gnupg cyrus_sasl shared-mime-info
|
2018-02-25 02:23:58 +00:00
|
|
|
libvirt yajl gsettings-desktop-schemas makeWrapper 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 17:49:14 +00: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
|
|
|
|
2014-12-16 13:05:07 +00:00
|
|
|
postInstall = ''
|
|
|
|
for f in "$out"/bin/*; do
|
2018-05-11 17:49:14 +00: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 13:05:07 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2011-01-13 22:30:32 +00:00
|
|
|
meta = {
|
|
|
|
description = "A viewer for remote virtual machines";
|
2014-09-13 11:51:39 +00:00
|
|
|
maintainers = [ maintainers.raskin ];
|
2014-05-10 08:37:59 +00: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 08:37:59 +00:00
|
|
|
}
|