2019-08-06 07:10:56 +02:00
|
|
|
{stdenv, mkDerivation, fetchurl, qmake, qtbase, qtsvg, pkgconfig, poppler, djvulibre, libspectre, cups
|
2014-10-18 19:47:20 +02:00
|
|
|
, file, ghostscript
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="qpdfview";
|
2019-08-06 07:10:56 +02:00
|
|
|
version = "0.4.18";
|
2014-10-18 19:47:20 +02:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
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
|
|
|
};
|
2018-03-28 12:48:31 +02:00
|
|
|
nativeBuildInputs = [ qmake pkgconfig ];
|
2014-10-18 19:47:20 +02:00
|
|
|
buildInputs = [
|
2018-07-17 22:11:16 +02:00
|
|
|
qtbase qtsvg poppler djvulibre libspectre cups file ghostscript
|
2014-10-18 19:47:20 +02:00
|
|
|
];
|
|
|
|
in
|
2019-08-06 07:10:56 +02:00
|
|
|
mkDerivation {
|
|
|
|
pname = s.baseName;
|
|
|
|
inherit (s) version;
|
2017-09-14 21:24:37 +02:00
|
|
|
inherit nativeBuildInputs buildInputs;
|
2014-10-18 19:47:20 +02:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2019-10-24 04:52:06 +02:00
|
|
|
|
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
|
|
|
|
2014-10-18 19:47:20 +02:00
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
|
|
|
description = "A tabbed document viewer";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://launchpad.net/qpdfview;
|
2014-10-18 19:47:20 +02:00
|
|
|
updateWalker = true;
|
|
|
|
};
|
|
|
|
}
|