2018-11-07 22:25:09 +01:00
|
|
|
{ stdenv, fetchurl, python3Packages, intltool, file
|
2018-08-24 14:35:32 +02:00
|
|
|
, wrapGAppsHook, gtk-vnc, vte, avahi, dconf
|
2018-12-02 12:41:15 +01:00
|
|
|
, gobject-introspection, libvirt-glib, system-libvirt
|
2019-07-12 22:55:37 +02:00
|
|
|
, gsettings-desktop-schemas, glib, libosinfo, gnome3
|
2020-10-12 18:41:33 +02:00
|
|
|
, gtksourceview4, docutils
|
2018-02-25 03:23:58 +01:00
|
|
|
, spiceSupport ? true, spice-gtk ? null
|
2018-05-13 19:58:10 +02:00
|
|
|
, cpio, e2fsprogs, findutils, gzip
|
2014-01-10 20:43:55 +01:00
|
|
|
}:
|
2012-05-06 21:25:01 +02:00
|
|
|
|
2012-07-21 01:27:24 +02:00
|
|
|
with stdenv.lib;
|
2012-05-06 21:25:01 +02:00
|
|
|
|
2018-11-07 22:25:09 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-11-21 12:30:20 +01:00
|
|
|
pname = "virt-manager";
|
2020-10-12 18:41:33 +02:00
|
|
|
version = "3.1.0";
|
2012-07-21 01:27:24 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-11-21 12:30:20 +01:00
|
|
|
url = "http://virt-manager.org/download/sources/virt-manager/${pname}-${version}.tar.gz";
|
2020-10-12 18:41:33 +02:00
|
|
|
sha256 = "0al34lxlywqnj98hdm72a38zk8ns91wkqgrc3h1mhv1kikd8pjfc";
|
2012-05-06 21:25:01 +02:00
|
|
|
};
|
|
|
|
|
2018-01-11 19:42:18 +01:00
|
|
|
nativeBuildInputs = [
|
2019-07-12 22:19:28 +02:00
|
|
|
intltool file
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection # for setup hook populating GI_TYPELIB_PATH
|
2020-10-12 18:41:33 +02:00
|
|
|
docutils
|
2018-01-11 19:42:18 +01:00
|
|
|
];
|
2017-03-28 19:13:39 +02:00
|
|
|
|
2019-03-12 22:29:45 +01:00
|
|
|
buildInputs = [
|
2019-07-12 22:19:28 +02:00
|
|
|
wrapGAppsHook
|
2019-03-12 22:29:45 +01:00
|
|
|
libvirt-glib vte dconf gtk-vnc gnome3.adwaita-icon-theme avahi
|
2019-07-12 22:19:07 +02:00
|
|
|
gsettings-desktop-schemas libosinfo gtksourceview4
|
2019-03-12 22:29:45 +01:00
|
|
|
gobject-introspection # Temporary fix, see https://github.com/NixOS/nixpkgs/issues/56943
|
|
|
|
] ++ optional spiceSupport spice-gtk;
|
2012-07-21 01:27:24 +02:00
|
|
|
|
2018-11-07 22:25:09 +01:00
|
|
|
propagatedBuildInputs = with python3Packages;
|
2018-02-18 23:19:41 +01:00
|
|
|
[
|
2018-11-07 22:25:09 +01:00
|
|
|
pygobject3 ipaddress libvirt libxml2 requests
|
2017-03-28 19:13:39 +02:00
|
|
|
];
|
2012-05-06 21:25:01 +02:00
|
|
|
|
2015-10-15 22:46:14 +02:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's|/usr/share/libvirt/cpu_map.xml|${system-libvirt}/share/libvirt/cpu_map.xml|g' virtinst/capabilities.py
|
2015-11-20 19:58:38 +01:00
|
|
|
sed -i "/'install_egg_info'/d" setup.py
|
2015-10-15 22:46:14 +02:00
|
|
|
'';
|
|
|
|
|
2015-11-20 13:48:30 +01:00
|
|
|
postConfigure = ''
|
2018-11-07 22:25:09 +01:00
|
|
|
${python3Packages.python.interpreter} setup.py configure --prefix=$out
|
virt-manager: update to 1.0.1, fix & update dependencies, gtk3 support
- Vte, add gtk3 support, enable introspection, update to 0.35.90
- Spice-gtk, add gtk3 support
- gtk-vnc, add gtk3 support
- Add libvirt-glib (thanks @bjornfor)
- Add usbredir
- qemu, enable usbredir
- spice-gtk, enable usbredir
- virt-manager, update to 1.0.1
[Bjørn:
* Set namePrefix = "" to preserve package name "virt-manager"
(instead of "python2.7-virt-manager")
* Add dconf to GIO_EXTRA_MODULES to get persistent settings in
virt-manager. Without it:
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
* Add ${gtk3}/share to XDG_DATA_DIRS to unbreak "Take Screenshot"
feature (fixes "Settings schema 'org.gtk.Settings.FileChooser' is not installed")
* gtk-vnc: don't pull "pkgs" attrset for optionalString, use stdenv.lib.optionalString instead.
]
2014-03-23 18:12:07 +01:00
|
|
|
'';
|
2012-05-06 21:25:01 +02:00
|
|
|
|
2019-11-20 10:57:51 +01:00
|
|
|
setupPyGlobalFlags = [ "--no-update-icon-cache" ];
|
2019-07-12 22:19:28 +02:00
|
|
|
|
2017-06-04 16:58:13 +02:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(--set PYTHONPATH "$PYTHONPATH")
|
2018-05-13 19:58:10 +02:00
|
|
|
# these are called from virt-install in initrdinject.py
|
|
|
|
gappsWrapperArgs+=(--prefix PATH : "${makeBinPath [ cpio e2fsprogs file findutils gzip ]}")
|
2017-06-04 16:58:13 +02:00
|
|
|
'';
|
|
|
|
|
virt-manager: update to 1.0.1, fix & update dependencies, gtk3 support
- Vte, add gtk3 support, enable introspection, update to 0.35.90
- Spice-gtk, add gtk3 support
- gtk-vnc, add gtk3 support
- Add libvirt-glib (thanks @bjornfor)
- Add usbredir
- qemu, enable usbredir
- spice-gtk, enable usbredir
- virt-manager, update to 1.0.1
[Bjørn:
* Set namePrefix = "" to preserve package name "virt-manager"
(instead of "python2.7-virt-manager")
* Add dconf to GIO_EXTRA_MODULES to get persistent settings in
virt-manager. Without it:
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
* Add ${gtk3}/share to XDG_DATA_DIRS to unbreak "Take Screenshot"
feature (fixes "Settings schema 'org.gtk.Settings.FileChooser' is not installed")
* gtk-vnc: don't pull "pkgs" attrset for optionalString, use stdenv.lib.optionalString instead.
]
2014-03-23 18:12:07 +01:00
|
|
|
# Failed tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://virt-manager.org";
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Desktop user interface for managing virtual machines";
|
|
|
|
longDescription = ''
|
|
|
|
The virt-manager application is a desktop user interface for managing
|
|
|
|
virtual machines through libvirt. It primarily targets KVM VMs, but also
|
|
|
|
manages Xen and LXC (linux containers).
|
|
|
|
'';
|
virt-manager: update to 1.0.1, fix & update dependencies, gtk3 support
- Vte, add gtk3 support, enable introspection, update to 0.35.90
- Spice-gtk, add gtk3 support
- gtk-vnc, add gtk3 support
- Add libvirt-glib (thanks @bjornfor)
- Add usbredir
- qemu, enable usbredir
- spice-gtk, enable usbredir
- virt-manager, update to 1.0.1
[Bjørn:
* Set namePrefix = "" to preserve package name "virt-manager"
(instead of "python2.7-virt-manager")
* Add dconf to GIO_EXTRA_MODULES to get persistent settings in
virt-manager. Without it:
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
* Add ${gtk3}/share to XDG_DATA_DIRS to unbreak "Take Screenshot"
feature (fixes "Settings schema 'org.gtk.Settings.FileChooser' is not installed")
* gtk-vnc: don't pull "pkgs" attrset for optionalString, use stdenv.lib.optionalString instead.
]
2014-03-23 18:12:07 +01:00
|
|
|
license = licenses.gpl2;
|
2018-02-20 12:47:34 +01:00
|
|
|
# exclude Darwin since libvirt-glib currently doesn't build there
|
|
|
|
platforms = platforms.linux;
|
2019-08-20 19:36:05 +02:00
|
|
|
maintainers = with maintainers; [ qknight offline fpletz globin ];
|
2012-05-06 21:25:01 +02:00
|
|
|
};
|
2012-07-21 01:27:24 +02:00
|
|
|
}
|