Add qpdfview PDF viewer with tabs. It also supports DjVu and some PostScript files.
This commit is contained in:
parent
35e4adf64c
commit
441cc2fc22
39
pkgs/applications/misc/qpdfview/default.nix
Normal file
39
pkgs/applications/misc/qpdfview/default.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{stdenv, fetchurl, qt4, pkgconfig, popplerQt4, djvulibre, libspectre, cups
|
||||||
|
, file, ghostscript
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
s = # Generated upstream information
|
||||||
|
rec {
|
||||||
|
baseName="qpdfview";
|
||||||
|
version="0.4.12";
|
||||||
|
name="${baseName}-${version}";
|
||||||
|
url="https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz";
|
||||||
|
sha256="1h6lrrh1vblqkxrd89nmid7d21anyn30iahj24z62yny35lidf0g";
|
||||||
|
};
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
@ -10550,6 +10550,8 @@ let
|
|||||||
|
|
||||||
vimNox = lowPrio (vim_configurable.override { source = "vim-nox"; });
|
vimNox = lowPrio (vim_configurable.override { source = "vim-nox"; });
|
||||||
|
|
||||||
|
qpdfview = callPackage ../applications/misc/qpdfview {};
|
||||||
|
|
||||||
qvim = lowPrio (callPackage ../applications/editors/vim/qvim.nix {
|
qvim = lowPrio (callPackage ../applications/editors/vim/qvim.nix {
|
||||||
inherit (pkgs) fetchgit stdenv ncurses pkgconfig gettext
|
inherit (pkgs) fetchgit stdenv ncurses pkgconfig gettext
|
||||||
composableDerivation lib config python perl tcl ruby qt4;
|
composableDerivation lib config python perl tcl ruby qt4;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user