virt-manager-qt: Add patch to rename variables

KDE/krdc@56a0222b51 renamed some
variables resulting in a build failure. The added patch renames the
variables in virt-manager-qt accordingly.
This commit is contained in:
Tristan Helmich (omniIT) 2020-10-02 12:20:32 +00:00
parent c04277eb1e
commit 643bdb404e

View File

@ -1,4 +1,4 @@
{ mkDerivation, lib, fetchFromGitHub, cmake, pkgconfig { mkDerivation, lib, fetchFromGitHub, fetchpatch, cmake, pkgconfig
, qtbase, qtmultimedia, qtsvg, qttools, krdc , qtbase, qtmultimedia, qtsvg, qttools, krdc
, libvncserver, libvirt, pcre, pixman, qtermwidget, spice-gtk, spice-protocol , libvncserver, libvirt, pcre, pixman, qtermwidget, spice-gtk, spice-protocol
, libselinux, libsepol, utillinux , libselinux, libsepol, utillinux
@ -20,6 +20,15 @@ mkDerivation rec {
"-DQTERMWIDGET_INCLUDE_DIRS=${qtermwidget}/include/qtermwidget5" "-DQTERMWIDGET_INCLUDE_DIRS=${qtermwidget}/include/qtermwidget5"
]; ];
patches = [
(fetchpatch {
# Maintainer note: Check whether this patch is still needed when a new version is released
name = "krdc-variable-name-changes.patch";
url = "https://github.com/fadenb/qt-virt-manager/commit/4640f5f64534ed7c8a1ecc6851f1c7503988de6d.patch";
sha256 = "1chl58nra1mj96n8jmnjbsyr6vlwkhn38afhwqsbr0bgyg23781v";
})
];
buildInputs = [ buildInputs = [
qtbase qtmultimedia qtsvg krdc qtbase qtmultimedia qtsvg krdc
libvirt libvncserver pcre pixman qtermwidget spice-gtk spice-protocol libvirt libvncserver pcre pixman qtermwidget spice-gtk spice-protocol