forked from mirrors/nixpkgs
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{stdenv, fetchurl, qt4, pkgconfig, popplerQt4, djvulibre, libspectre, cups
|
|
, file, ghostscript
|
|
}:
|
|
let
|
|
s = # Generated upstream information
|
|
rec {
|
|
baseName="qpdfview";
|
|
version = "0.4.14beta1";
|
|
name="${baseName}-${version}";
|
|
url="https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz";
|
|
sha256 = "0ly0xqpgmd1ccsyqs6z0i3w1g4y3ichmibd809bjy344h6fb0m3b";
|
|
};
|
|
buildInputs = [
|
|
qt4 popplerQt4 pkgconfig djvulibre libspectre cups file ghostscript
|
|
];
|
|
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;
|
|
};
|
|
}
|