2021-01-17 03:09:27 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, intltool, shared-mime-info, wrapGAppsHook
|
2019-08-20 20:48:38 +02:00
|
|
|
, glib, gsettings-desktop-schemas, gtk-vnc, gtk3, libvirt, libvirt-glib, libxml2, vte
|
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
|
|
|
|
2021-01-15 06:42:41 +01:00
|
|
|
with lib;
|
2014-05-10 10:37:59 +02:00
|
|
|
|
2015-12-24 13:08:10 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
baseName = "virt-viewer";
|
2020-05-10 20:35:50 +02:00
|
|
|
version = "9.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";
|
2020-05-10 20:35:50 +02:00
|
|
|
sha256 = "09a83mzyn3b4nd7wpa659g1zf1fjbzb79rk968bz6k5xl21k7d4i";
|
2011-01-13 23:30:32 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ pkg-config intltool shared-mime-info wrapGAppsHook glib ];
|
2015-12-24 13:08:10 +01:00
|
|
|
buildInputs = [
|
2019-08-20 20:48:38 +02:00
|
|
|
glib gsettings-desktop-schemas gtk-vnc gtk3 libvirt libvirt-glib libxml2 vte
|
2017-12-06 11:55:39 +01:00
|
|
|
] ++ 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;
|
|
|
|
|
2019-08-20 20:48:38 +02:00
|
|
|
strictDeps = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
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
|
|
|
}
|