2021-01-25 08:26:54 +00:00
|
|
|
{lib, mkDerivation, fetchurl, qmake, qtbase, qtsvg, pkg-config, poppler, djvulibre, libspectre, cups
|
2014-10-18 18:47:20 +01:00
|
|
|
, file, ghostscript
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="qpdfview";
|
2019-08-06 06:10:56 +01:00
|
|
|
version = "0.4.18";
|
2014-10-18 18:47:20 +01:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz";
|
2019-08-06 06:10:56 +01:00
|
|
|
sha256 = "0v1rl126hvblajnph2hkansgi0s8vjdc5yxrm4y3faa0lxzjwr6c";
|
2014-10-18 18:47:20 +01:00
|
|
|
};
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ qmake pkg-config ];
|
2014-10-18 18:47:20 +01:00
|
|
|
buildInputs = [
|
2018-07-17 21:11:16 +01:00
|
|
|
qtbase qtsvg poppler djvulibre libspectre cups file ghostscript
|
2014-10-18 18:47:20 +01:00
|
|
|
];
|
2021-02-25 21:54:53 +00:00
|
|
|
# apply upstream fix for qt5.15 https://bazaar.launchpad.net/~adamreichold/qpdfview/trunk/revision/2104
|
2021-02-25 17:40:33 +00:00
|
|
|
patches = [ ./qpdfview-qt515-compat.patch ];
|
2014-10-18 18:47:20 +01:00
|
|
|
in
|
2019-08-06 06:10:56 +01:00
|
|
|
mkDerivation {
|
|
|
|
pname = s.baseName;
|
|
|
|
inherit (s) version;
|
2021-02-25 17:40:33 +00:00
|
|
|
inherit nativeBuildInputs buildInputs patches;
|
2014-10-18 18:47:20 +01:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2019-10-24 03:52:06 +01:00
|
|
|
|
2019-10-26 07:37:56 +01:00
|
|
|
preConfigure = ''
|
|
|
|
qmakeFlags+=(*.pro)
|
|
|
|
'';
|
|
|
|
|
2018-04-30 01:44:02 +01: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 11:48:31 +01:00
|
|
|
|
2014-10-18 18:47:20 +01:00
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
|
|
|
description = "A tabbed document viewer";
|
2021-02-25 21:54:53 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2021-01-15 05:42:41 +00:00
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://launchpad.net/qpdfview";
|
2014-10-18 18:47:20 +01:00
|
|
|
updateWalker = true;
|
|
|
|
};
|
|
|
|
}
|