2018-07-17 20:11:16 +00:00
|
|
|
{stdenv, fetchurl, qmake, qtbase, qtsvg, pkgconfig, poppler, djvulibre, libspectre, cups
|
2014-10-18 17:47:20 +00:00
|
|
|
, file, ghostscript
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="qpdfview";
|
2015-12-31 15:51:13 +00:00
|
|
|
version = "0.4.16";
|
2014-10-18 17:47:20 +00:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz";
|
2015-12-31 15:51:13 +00:00
|
|
|
sha256 = "0zysjhr58nnmx7ba01q3zvgidkgcqxjdj4ld3gx5fc7wzvl1dm7s";
|
2014-10-18 17:47:20 +00:00
|
|
|
};
|
2018-03-28 10:48:31 +00:00
|
|
|
nativeBuildInputs = [ qmake pkgconfig ];
|
2014-10-18 17:47:20 +00:00
|
|
|
buildInputs = [
|
2018-07-17 20:11:16 +00:00
|
|
|
qtbase qtsvg poppler djvulibre libspectre cups file ghostscript
|
2014-10-18 17:47:20 +00:00
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
2017-09-14 19:24:37 +00:00
|
|
|
inherit nativeBuildInputs buildInputs;
|
2014-10-18 17:47:20 +00:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2018-04-30 00:44:02 +00:00
|
|
|
qmakeFlags = [
|
|
|
|
"*.pro"
|
|
|
|
"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 10:48:31 +00:00
|
|
|
|
2014-10-18 17:47:20 +00: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 20:03:30 +00:00
|
|
|
homepage = https://launchpad.net/qpdfview;
|
2014-10-18 17:47:20 +00:00
|
|
|
updateWalker = true;
|
|
|
|
};
|
|
|
|
}
|