1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 11:02:05 +00:00
nixpkgs/pkgs/applications/virtualization/virt-viewer/default.nix

47 lines
1.3 KiB
Nix
Raw Normal View History

2019-08-20 19:48:38 +01:00
{ stdenv, fetchurl, pkgconfig, intltool, shared-mime-info, wrapGAppsHook
, glib, gsettings-desktop-schemas, gtk-vnc, gtk3, libvirt, libvirt-glib, libxml2, vte
, 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;
2015-12-24 12:08:10 +00:00
stdenv.mkDerivation rec {
baseName = "virt-viewer";
version = "8.0";
2015-12-24 12:08:10 +00:00
name = "${baseName}-${version}";
src = fetchurl {
2015-12-24 12:08:10 +00:00
url = "http://virt-manager.org/download/sources/${baseName}/${name}.tar.gz";
sha256 = "1vdnjmhrva7r1n9nv09j8gc12hy0j9j5l4rka4hh0jbsbpnmiwyw";
};
2019-08-20 19:48:38 +01:00
nativeBuildInputs = [ pkgconfig intltool shared-mime-info wrapGAppsHook glib ];
2015-12-24 12:08:10 +00:00
buildInputs = [
2019-08-20 19:48:38 +01:00
glib gsettings-desktop-schemas gtk-vnc gtk3 libvirt libvirt-glib libxml2 vte
] ++ optionals spiceSupport [
spice-gtk spice-protocol libcap gdbm
];
2019-01-26 15:58:16 +00:00
# Required for USB redirection PolicyKit rules file
propagatedUserEnvPkgs = optional spiceSupport spice-gtk;
2019-08-20 19:48:38 +01:00
strictDeps = true;
enableParallelBuilding = true;
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";
};
};
}