2022-01-13 00:22:37 +01:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchurl
|
|
|
|
, qmake
|
|
|
|
, qtbase
|
|
|
|
, qtsvg
|
|
|
|
, pkg-config
|
|
|
|
, poppler
|
|
|
|
, djvulibre
|
|
|
|
, libspectre
|
|
|
|
, cups
|
|
|
|
, file
|
|
|
|
, ghostscript
|
2014-10-18 19:47:20 +02:00
|
|
|
}:
|
2022-01-13 00:22:37 +01:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "qpdfview";
|
|
|
|
version = "0.4.18";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz";
|
2019-08-06 07:10:56 +02:00
|
|
|
sha256 = "0v1rl126hvblajnph2hkansgi0s8vjdc5yxrm4y3faa0lxzjwr6c";
|
2014-10-18 19:47:20 +02:00
|
|
|
};
|
2022-01-13 00:22:37 +01:00
|
|
|
|
2021-02-25 22:54:53 +01:00
|
|
|
# apply upstream fix for qt5.15 https://bazaar.launchpad.net/~adamreichold/qpdfview/trunk/revision/2104
|
2021-02-25 18:40:33 +01:00
|
|
|
patches = [ ./qpdfview-qt515-compat.patch ];
|
2019-10-24 04:52:06 +02:00
|
|
|
|
2022-01-13 00:22:37 +01:00
|
|
|
nativeBuildInputs = [ qmake pkg-config ];
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtsvg
|
|
|
|
poppler
|
|
|
|
djvulibre
|
|
|
|
libspectre
|
|
|
|
cups
|
|
|
|
file
|
|
|
|
ghostscript
|
|
|
|
];
|
2019-10-26 08:37:56 +02:00
|
|
|
preConfigure = ''
|
|
|
|
qmakeFlags+=(*.pro)
|
|
|
|
'';
|
|
|
|
|
2018-04-30 02:44:02 +02:00
|
|
|
qmakeFlags = [
|
|
|
|
"TARGET_INSTALL_PATH=${placeholder "out"}/bin"
|
|
|
|
"PLUGIN_INSTALL_PATH=${placeholder "out"}/lib/qpdfview"
|
|
|
|
"DATA_INSTALL_PATH=${placeholder "out"}/share/qpdfview"
|
|
|
|
"MANUAL_INSTALL_PATH=${placeholder "out"}/share/man/man1"
|
|
|
|
"ICON_INSTALL_PATH=${placeholder "out"}/share/icons/hicolor/scalable/apps"
|
|
|
|
"LAUNCHER_INSTALL_PATH=${placeholder "out"}/share/applications"
|
|
|
|
"APPDATA_INSTALL_PATH=${placeholder "out"}/share/appdata"
|
|
|
|
];
|
2018-03-28 12:48:31 +02:00
|
|
|
|
2022-01-13 00:22:37 +01:00
|
|
|
meta = with lib; {
|
2014-10-18 19:47:20 +02:00
|
|
|
description = "A tabbed document viewer";
|
2022-01-13 00:22:37 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://launchpad.net/qpdfview";
|
2014-10-18 19:47:20 +02:00
|
|
|
};
|
|
|
|
}
|