nixpkgs/pkgs/applications/virtualization/virt-viewer/default.nix

51 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, intltool, glib, libxml2, gtk3, gtk-vnc, gmp
, 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
, spiceSupport ? true
, spice-gtk ? null, spice-protocol ? null, libcap ? null, gdbm ? null
, xenSupport ? false, xen ? null
}:
assert spiceSupport ->
spice-gtk != null && spice-protocol != null && libcap != null && gdbm != null;
with stdenv.lib;
2015-12-24 13:08:10 +01:00
stdenv.mkDerivation rec {
baseName = "virt-viewer";
version = "8.0";
2015-12-24 13:08:10 +01:00
name = "${baseName}-${version}";
src = fetchurl {
2015-12-24 13:08:10 +01:00
url = "http://virt-manager.org/download/sources/${baseName}/${name}.tar.gz";
sha256 = "1vdnjmhrva7r1n9nv09j8gc12hy0j9j5l4rka4hh0jbsbpnmiwyw";
};
2018-08-24 14:59:47 +02:00
nativeBuildInputs = [ pkgconfig intltool wrapGAppsHook ];
2015-12-24 13:08:10 +01:00
buildInputs = [
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
libcap_ng numactl libapparmor
] ++ optionals xenSupport [
xen
] ++ optionals spiceSupport [
spice-gtk spice-protocol libcap gdbm
];
2019-01-26 16:58:16 +01:00
# Required for USB redirection PolicyKit rules file
propagatedUserEnvPkgs = optional spiceSupport spice-gtk;
meta = {
description = "A viewer for remote virtual machines";
maintainers = [ maintainers.raskin ];
platforms = platforms.linux;
license = licenses.gpl2;
};
passthru = {
updateInfo = {
downloadPage = "http://virt-manager.org/download.html";
};
};
}