diffpdf: move to using qt5
Patch is used by Gentoo, Debian, etc.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, qt4, poppler_qt4, qmake4Hook }:
|
||||
{ stdenv, fetchurl, fetchpatch, qmake, qttools, qtbase, poppler_qt5 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.1.3";
|
||||
@@ -9,13 +9,19 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0cr468fi0d512jjj23r5flfzx957vibc9c25gwwhi0d773h2w566";
|
||||
};
|
||||
|
||||
patches = [ ./fix_path_poppler_qt4.patch ];
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = https://raw.githubusercontent.com/gentoo/gentoo/9b971631588ff46e7c2d501bc35cd0d9ce2d98e2/app-text/diffpdf/files/diffpdf-2.1.3-qt5.patch;
|
||||
sha256 = "0sax8gcqcmzf74hmdr3rarqs4nsxmml9qmh6pqyjmgl3lypxhafg";
|
||||
})
|
||||
./fix_path_poppler_qt5.patch
|
||||
];
|
||||
|
||||
buildInputs = [ qt4 poppler_qt4 ];
|
||||
nativeBuildInputs = [ qmake4Hook ];
|
||||
nativeBuildInputs = [ qmake qttools ];
|
||||
buildInputs = [ qtbase poppler_qt5 ];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace diffpdf.pro --replace @@NIX_POPPLER_QT4@@ ${poppler_qt4.dev}
|
||||
substituteInPlace diffpdf.pro --replace @@NIX_POPPLER_QT5@@ ${poppler_qt5.dev}
|
||||
lrelease diffpdf.pro
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user