mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
Merge pull request #114406 from foolnotion/master
qt515 compatibility for qpdfview 0.4.18
This commit is contained in:
commit
3a2195b750
@ -14,11 +14,13 @@ let
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
qtbase qtsvg poppler djvulibre libspectre cups file ghostscript
|
qtbase qtsvg poppler djvulibre libspectre cups file ghostscript
|
||||||
];
|
];
|
||||||
|
# apply upstream fix for qt5.15 https://bazaar.launchpad.net/~adamreichold/qpdfview/trunk/revision/2104
|
||||||
|
patches = [ ./qpdfview-qt515-compat.patch ];
|
||||||
in
|
in
|
||||||
mkDerivation {
|
mkDerivation {
|
||||||
pname = s.baseName;
|
pname = s.baseName;
|
||||||
inherit (s) version;
|
inherit (s) version;
|
||||||
inherit nativeBuildInputs buildInputs;
|
inherit nativeBuildInputs buildInputs patches;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
inherit (s) url sha256;
|
inherit (s) url sha256;
|
||||||
};
|
};
|
||||||
@ -40,7 +42,7 @@ mkDerivation {
|
|||||||
meta = {
|
meta = {
|
||||||
inherit (s) version;
|
inherit (s) version;
|
||||||
description = "A tabbed document viewer";
|
description = "A tabbed document viewer";
|
||||||
license = lib.licenses.gpl2;
|
license = lib.licenses.gpl2Plus;
|
||||||
maintainers = [lib.maintainers.raskin];
|
maintainers = [lib.maintainers.raskin];
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
homepage = "https://launchpad.net/qpdfview";
|
homepage = "https://launchpad.net/qpdfview";
|
||||||
|
17
pkgs/applications/misc/qpdfview/qpdfview-qt515-compat.patch
Normal file
17
pkgs/applications/misc/qpdfview/qpdfview-qt515-compat.patch
Normal 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>
|
||||||
|
|
@ -25618,7 +25618,7 @@ in
|
|||||||
|
|
||||||
vimv = callPackage ../tools/misc/vimv/default.nix { };
|
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 {
|
qtile = callPackage ../applications/window-managers/qtile {
|
||||||
inherit (xorg) libxcb;
|
inherit (xorg) libxcb;
|
||||||
|
Loading…
Reference in New Issue
Block a user