virt-manager: Fixup path to libvirt's cpu_map.xml
This commit is contained in:
parent
07372d04a2
commit
556151911e
|
@ -1,7 +1,7 @@
|
|||
{ stdenv, fetchurl, pythonPackages, intltool, libxml2Python, curl, python
|
||||
, wrapGAppsHook, virtinst, pyGtkGlade, pythonDBus, gnome_python, gtkvnc, vte
|
||||
, gtk3, gobjectIntrospection, libvirt-glib, gsettings_desktop_schemas, glib
|
||||
, avahi, dconf, spiceSupport ? true, spice_gtk, libosinfo, gnome3
|
||||
, avahi, dconf, spiceSupport ? true, spice_gtk, libosinfo, gnome3, system-libvirt
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
@ -22,7 +22,7 @@ buildPythonPackage rec {
|
|||
paste_deploy m2crypto ipy twisted sqlalchemy_migrate
|
||||
distutils_extra simplejson readline glance cheetah lockfile httplib2
|
||||
urlgrabber virtinst pyGtkGlade pythonDBus gnome_python pygobject3
|
||||
libvirt libxml2Python ipaddr vte libosinfo
|
||||
libxml2Python ipaddr vte libosinfo
|
||||
] ++ optional spiceSupport spice_gtk;
|
||||
|
||||
buildInputs =
|
||||
|
@ -40,6 +40,10 @@ buildPythonPackage rec {
|
|||
dconf
|
||||
];
|
||||
|
||||
patchPhase = ''
|
||||
sed -i 's|/usr/share/libvirt/cpu_map.xml|${system-libvirt}/share/libvirt/cpu_map.xml|g' virtinst/capabilities.py
|
||||
'';
|
||||
|
||||
configurePhase = ''
|
||||
sed -i 's/from distutils.core/from setuptools/g' setup.py
|
||||
sed -i 's/from distutils.command.install/from setuptools.command.install/g' setup.py
|
||||
|
|
|
@ -13086,6 +13086,7 @@ let
|
|||
dconf = gnome3.dconf;
|
||||
gtkvnc = gtkvnc.override { enableGTK3 = true; };
|
||||
spice_gtk = spice_gtk.override { enableGTK3 = true; };
|
||||
system-libvirt = libvirt;
|
||||
};
|
||||
|
||||
virtinst = callPackage ../applications/virtualization/virtinst {};
|
||||
|
|
Loading…
Reference in New Issue