Skip to content

Commit

Permalink
Merge pull request #67177 from Izorkin/virt-viewer
Browse files Browse the repository at this point in the history
 virt-viewer: remove unused packages
  • Loading branch information
globin committed Aug 29, 2019
2 parents 0fc011e + 4471efd commit cbd4d59
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 26 deletions.
18 changes: 7 additions & 11 deletions pkgs/applications/virtualization/virt-viewer/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{ stdenv, fetchurl, pkgconfig, intltool, glib, libxml2, gtk3, gtk-vnc, gmp
, libgcrypt, gnupg, cyrus_sasl, shared-mime-info, libvirt, yajl
, gsettings-desktop-schemas, wrapGAppsHook, libvirt-glib, libcap_ng, numactl
, libapparmor, gst_all_1
{ 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
, xenSupport ? false, xen ? null
}:

assert spiceSupport ->
Expand All @@ -22,20 +19,19 @@ stdenv.mkDerivation rec {
sha256 = "1vdnjmhrva7r1n9nv09j8gc12hy0j9j5l4rka4hh0jbsbpnmiwyw";
};

nativeBuildInputs = [ pkgconfig intltool wrapGAppsHook ];
nativeBuildInputs = [ pkgconfig intltool shared-mime-info wrapGAppsHook glib ];
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 xenSupport [
xen
glib gsettings-desktop-schemas gtk-vnc gtk3 libvirt libvirt-glib libxml2 vte
] ++ optionals spiceSupport [
spice-gtk spice-protocol libcap gdbm
];

# Required for USB redirection PolicyKit rules file
propagatedUserEnvPkgs = optional spiceSupport spice-gtk;

strictDeps = true;
enableParallelBuilding = true;

meta = {
description = "A viewer for remote virtual machines";
maintainers = [ maintainers.raskin ];
Expand Down
22 changes: 7 additions & 15 deletions pkgs/development/libraries/libvirt-glib/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{ stdenv, fetchurl, pkgconfig, libvirt, glib, libxml2, intltool, libtool, yajl
, nettle, libgcrypt, pythonPackages, gobject-introspection, libcap_ng, numactl
, libapparmor, vala
, xenSupport ? false, xen ? null
{ stdenv, fetchurl, pkgconfig, gobject-introspection, intltool, vala
, libcap_ng, libvirt, libxml2
}:

let
inherit (pythonPackages) python pygobject2;
in stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
name = "libvirt-glib-2.0.0";

outputs = [ "out" "dev" ];
Expand All @@ -16,15 +12,11 @@ in stdenv.mkDerivation rec {
sha256 = "0six9ckmvlwwyavyjkgc262qkpvfqgi8rjij7cyk00bmqq8c9s4l";
};

nativeBuildInputs = [ pkgconfig vala ];
buildInputs = [
libvirt glib libxml2 intltool libtool yajl nettle libgcrypt
python pygobject2 gobject-introspection libcap_ng numactl libapparmor
] ++ stdenv.lib.optionals xenSupport [
xen
];
nativeBuildInputs = [ pkgconfig intltool vala gobject-introspection ];
buildInputs = [ libcap_ng libvirt libxml2 gobject-introspection ];

enableParallelBuilding = true;
strictDeps = true;

meta = with stdenv.lib; {
description = "Library for working with virtual machines";
Expand All @@ -36,7 +28,7 @@ in stdenv.mkDerivation rec {
- libvirt-gconfig - GObjects for manipulating libvirt XML documents
- libvirt-gobject - GObjects for managing libvirt objects
'';
homepage = http://libvirt.org/;
homepage = https://libvirt.org/;
license = licenses.lgpl2Plus;
platforms = platforms.linux;
};
Expand Down

0 comments on commit cbd4d59

Please sign in to comment.