diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/virtualization/virt-viewer')
-rw-r--r-- | nixpkgs/pkgs/applications/virtualization/virt-viewer/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/virtualization/virt-viewer/default.nix b/nixpkgs/pkgs/applications/virtualization/virt-viewer/default.nix new file mode 100644 index 000000000000..7c90f9b3483f --- /dev/null +++ b/nixpkgs/pkgs/applications/virtualization/virt-viewer/default.nix @@ -0,0 +1,50 @@ +{ stdenv, fetchurl, pkgconfig, intltool, glib, libxml2, gtk3, gtk-vnc, gmp +, libgcrypt, gnupg, cyrus_sasl, shared-mime-info, libvirt, yajl, xen +, gsettings-desktop-schemas, wrapGAppsHook, libvirt-glib, libcap_ng, numactl +, libapparmor, gst_all_1 +, spiceSupport ? true +, spice-gtk ? null, spice-protocol ? null, libcap ? null, gdbm ? null +}: + +assert spiceSupport -> + spice-gtk != null && spice-protocol != null && libcap != null && gdbm != null; + +with stdenv.lib; + +stdenv.mkDerivation rec { + baseName = "virt-viewer"; + version = "8.0"; + name = "${baseName}-${version}"; + + src = fetchurl { + url = "http://virt-manager.org/download/sources/${baseName}/${name}.tar.gz"; + sha256 = "1vdnjmhrva7r1n9nv09j8gc12hy0j9j5l4rka4hh0jbsbpnmiwyw"; + }; + + nativeBuildInputs = [ pkgconfig intltool wrapGAppsHook ]; + buildInputs = [ + glib libxml2 gtk3 gtk-vnc gmp libgcrypt gnupg cyrus_sasl shared-mime-info + libvirt yajl gsettings-desktop-schemas libvirt-glib + libcap_ng numactl libapparmor + ] ++ optionals stdenv.isx86_64 [ + xen + ] ++ optionals spiceSupport [ + spice-gtk spice-protocol libcap gdbm + gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good + ]; + + # 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"; + }; + }; +} |