2015-04-02 16:50:37 +02:00
|
|
|
{stdenv, fetchurl, qt4, pkgconfig, poppler_qt4, djvulibre, libspectre, cups
|
2014-10-18 19:47:20 +02:00
|
|
|
, file, ghostscript
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="qpdfview";
|
2015-03-08 19:20:49 +01:00
|
|
|
version = "0.4.14";
|
2014-10-18 19:47:20 +02:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz";
|
2015-03-08 19:20:49 +01:00
|
|
|
sha256 = "15d88xzqvrcp9szmz8d1lj65yrdx90j6fp78gia5c8kra2z8bik9";
|
2014-10-18 19:47:20 +02:00
|
|
|
};
|
|
|
|
buildInputs = [
|
2015-04-02 16:50:37 +02:00
|
|
|
qt4 poppler_qt4 pkgconfig djvulibre libspectre cups file ghostscript
|
2014-10-18 19:47:20 +02:00
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
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;
|
|
|
|
homepage = "https://launchpad.net/qpdfview";
|
|
|
|
updateWalker = true;
|
|
|
|
};
|
|
|
|
}
|