2015-04-02 15:50:37 +01:00
|
|
|
{stdenv, fetchurl, qt4, pkgconfig, poppler_qt4, djvulibre, libspectre, cups
|
2014-10-18 18:47:20 +01: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 18:47:20 +01: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 18:47:20 +01:00
|
|
|
};
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-10-18 18:47:20 +01:00
|
|
|
buildInputs = [
|
2017-09-14 20:24:37 +01:00
|
|
|
qt4 poppler_qt4 djvulibre libspectre cups file ghostscript
|
2014-10-18 18:47:20 +01:00
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
2017-09-14 20:24:37 +01:00
|
|
|
inherit nativeBuildInputs buildInputs;
|
2014-10-18 18:47:20 +01:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
|
|
|
configurePhase = ''
|
|
|
|
qmake *.pro
|
|
|
|
for i in *.pro; do
|
|
|
|
qmake "$i" -o "Makefile.$(basename "$i" .pro)"
|
|
|
|
done
|
|
|
|
sed -e "s@/usr/@$out/@g" -i Makefile*
|
|
|
|
'';
|
|
|
|
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 21:03:30 +01:00
|
|
|
homepage = https://launchpad.net/qpdfview;
|
2014-10-18 18:47:20 +01:00
|
|
|
updateWalker = true;
|
|
|
|
};
|
|
|
|
}
|