2021-02-05 17:12:51 +00:00
|
|
|
{lib, mkDerivation, fetchurl, qmake, qtbase, qtsvg, pkg-config, poppler, djvulibre, libspectre, cups
|
2020-04-24 23:36:52 +00:00
|
|
|
, file, ghostscript
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="qpdfview";
|
|
|
|
version = "0.4.18";
|
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz";
|
|
|
|
sha256 = "0v1rl126hvblajnph2hkansgi0s8vjdc5yxrm4y3faa0lxzjwr6c";
|
|
|
|
};
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ qmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
qtbase qtsvg poppler djvulibre libspectre cups file ghostscript
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
# apply upstream fix for qt5.15 https://bazaar.launchpad.net/~adamreichold/qpdfview/trunk/revision/2104
|
|
|
|
patches = [ ./qpdfview-qt515-compat.patch ];
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
mkDerivation {
|
|
|
|
pname = s.baseName;
|
|
|
|
inherit (s) version;
|
2021-03-09 03:18:52 +00:00
|
|
|
inherit nativeBuildInputs buildInputs patches;
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
qmakeFlags+=(*.pro)
|
|
|
|
'';
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
|
|
|
description = "A tabbed document viewer";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://launchpad.net/qpdfview";
|
|
|
|
updateWalker = true;
|
|
|
|
};
|
|
|
|
}
|