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

84 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, gdbm ? null
, glib
, gsettings-desktop-schemas
, gtk-vnc
, gtk3
, intltool
, libcap ? null
, libvirt
, libvirt-glib
, libxml2
, pkg-config
, shared-mime-info
, spice-gtk ? null
, spice-protocol ? null
, spiceSupport ? true
, vte
, wrapGAppsHook
}:
assert spiceSupport -> (
gdbm != null
&& libcap != null
&& spice-gtk != null
&& spice-protocol != null
);
2021-01-15 05:42:41 +00:00
with lib;
2015-12-24 12:08:10 +00:00
stdenv.mkDerivation rec {
baseName = "virt-viewer";
2020-05-10 19:35:50 +01:00
version = "9.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";
2020-05-10 19:35:50 +01:00
sha256 = "09a83mzyn3b4nd7wpa659g1zf1fjbzb79rk968bz6k5xl21k7d4i";
};
nativeBuildInputs = [
glib
intltool
pkg-config
shared-mime-info
wrapGAppsHook
];
2015-12-24 12:08:10 +00:00
buildInputs = [
glib
gsettings-desktop-schemas
gtk-vnc
gtk3
libvirt
libvirt-glib
libxml2
vte
] ++ optionals spiceSupport [
gdbm
libcap
spice-gtk
spice-protocol
];
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";
};
};
}