2016-08-16 21:51:21 +01:00
|
|
|
{ stdenv, fetchurl, pythonPackages, intltool, libxml2Python, curl
|
|
|
|
, wrapGAppsHook, virtinst, gnome_python, gtkvnc, vte
|
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 17:12:07 +00:00
|
|
|
, gtk3, gobjectIntrospection, libvirt-glib, gsettings_desktop_schemas, glib
|
2015-10-15 21:46:14 +01:00
|
|
|
, avahi, dconf, spiceSupport ? true, spice_gtk, libosinfo, gnome3, system-libvirt
|
2014-01-10 19:43:55 +00:00
|
|
|
}:
|
2012-05-06 20:25:01 +01:00
|
|
|
|
2012-07-21 00:27:24 +01:00
|
|
|
with stdenv.lib;
|
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 17:12:07 +00:00
|
|
|
with pythonPackages;
|
2012-05-06 20:25:01 +01:00
|
|
|
|
2016-02-19 12:12:11 +00:00
|
|
|
buildPythonApplication rec {
|
2012-07-21 00:27:24 +01:00
|
|
|
name = "virt-manager-${version}";
|
2016-06-23 13:52:06 +01:00
|
|
|
version = "1.4.0";
|
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 17:12:07 +00:00
|
|
|
namePrefix = "";
|
2012-07-21 00:27:24 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
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 17:12:07 +00:00
|
|
|
url = "http://virt-manager.org/download/sources/virt-manager/${name}.tar.gz";
|
2016-06-23 13:52:06 +01:00
|
|
|
sha256 = "1jnawqjmcqd2db78ngx05x7cxxn3iy1sb4qfgbwcn045qh6a8cdz";
|
2012-05-06 20:25:01 +01: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 17:12:07 +00:00
|
|
|
propagatedBuildInputs =
|
2015-11-20 18:58:38 +00:00
|
|
|
[ eventlet greenlet gflags netaddr carrot routes
|
2016-03-15 12:55:17 +00:00
|
|
|
PasteDeploy m2crypto ipy twisted
|
2016-10-13 23:03:12 +01:00
|
|
|
distutils_extra simplejson glanceclient cheetah lockfile httplib2
|
2016-08-16 21:51:21 +01:00
|
|
|
urlgrabber virtinst pyGtkGlade dbus-python gnome_python pygobject3
|
2015-11-20 18:58:38 +00:00
|
|
|
libvirt libxml2Python ipaddr vte libosinfo gobjectIntrospection gtk3 mox
|
|
|
|
gtkvnc libvirt-glib glib gsettings_desktop_schemas gnome3.defaultIconTheme
|
|
|
|
wrapGAppsHook
|
2014-01-10 19:43:55 +00:00
|
|
|
] ++ optional spiceSupport spice_gtk;
|
2012-07-21 00:27:24 +01:00
|
|
|
|
2015-11-20 18:58:38 +00:00
|
|
|
buildInputs = [ dconf avahi intltool ];
|
2012-05-06 20:25:01 +01:00
|
|
|
|
2015-10-15 21:46:14 +01: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 18:58:38 +00:00
|
|
|
sed -i "/'install_egg_info'/d" setup.py
|
2015-10-15 21:46:14 +01:00
|
|
|
'';
|
|
|
|
|
2015-11-20 12:48:30 +00:00
|
|
|
postConfigure = ''
|
|
|
|
${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 17:12:07 +00:00
|
|
|
'';
|
2012-05-06 20:25:01 +01: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 17:12:07 +00:00
|
|
|
postInstall = ''
|
2016-04-16 17:57:59 +01:00
|
|
|
${glib.dev}/bin/glib-compile-schemas "$out"/share/glib-2.0/schemas
|
2012-07-21 00:27:24 +01:00
|
|
|
'';
|
2012-05-06 20:25:01 +01: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 17:12:07 +00:00
|
|
|
# Failed tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2012-05-06 20:25:01 +01:00
|
|
|
homepage = http://virt-manager.org;
|
2013-10-06 10:49:53 +01: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 17:12:07 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [qknight offline];
|
2012-05-06 20:25:01 +01:00
|
|
|
};
|
2012-07-21 00:27:24 +01:00
|
|
|
}
|