qt515 compatibility for qpdfview 0.4.18

This commit is contained in:
Bogdan Burlacu 2021-02-25 18:40:33 +01:00
parent daf30a5116
commit bf8c24d3de
No known key found for this signature in database
GPG Key ID: 5B0EFDDFBA816105
3 changed files with 20 additions and 2 deletions

View File

@ -14,11 +14,12 @@ let
buildInputs = [
qtbase qtsvg poppler djvulibre libspectre cups file ghostscript
];
patches = [ ./qpdfview-qt515-compat.patch ];
in
mkDerivation {
pname = s.baseName;
inherit (s) version;
inherit nativeBuildInputs buildInputs;
inherit nativeBuildInputs buildInputs patches;
src = fetchurl {
inherit (s) url sha256;
};

View File

@ -0,0 +1,17 @@
Fix compatibility with Qt 5.15.
Patch copied from upstream source repository:
https://bazaar.launchpad.net/~adamreichold/qpdfview/trunk/revision/2104
--- a/sources/model.h 2017-04-19 21:01:25 +0000
+++ b/sources/model.h 2020-06-09 06:24:11 +0000
@@ -24,6 +24,7 @@
#define DOCUMENTMODEL_H
#include <QList>
+#include <QPainterPath>
#include <QtPlugin>
#include <QWidget>
#include <QVector>

View File

@ -25594,7 +25594,7 @@ in
vimv = callPackage ../tools/misc/vimv/default.nix { };
qpdfview = libsForQt514.callPackage ../applications/misc/qpdfview {};
qpdfview = libsForQt5.callPackage ../applications/misc/qpdfview {};
qtile = callPackage ../applications/window-managers/qtile {
inherit (xorg) libxcb;