2016-06-10 15:04:22 +01:00
|
|
|
{ callPackage, lib, pkgs, fetchurl, stdenv, useMupdf, synctexSupport ? true }:
|
2012-05-14 22:43:46 +01:00
|
|
|
|
|
|
|
rec {
|
2014-10-23 12:57:30 +01:00
|
|
|
inherit stdenv;
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2014-02-20 09:31:16 +00:00
|
|
|
icon = ./icon.xpm;
|
|
|
|
|
2013-11-23 14:19:54 +00:00
|
|
|
zathura_core = callPackage ./core {
|
|
|
|
gtk = pkgs.gtk3;
|
2014-02-20 09:31:16 +00:00
|
|
|
zathura_icon = icon;
|
2016-06-10 15:04:22 +01:00
|
|
|
inherit synctexSupport;
|
2013-11-23 14:19:54 +00:00
|
|
|
};
|
2012-05-14 22:43:46 +01:00
|
|
|
|
|
|
|
zathura_pdf_poppler = callPackage ./pdf-poppler { };
|
|
|
|
|
2014-05-17 13:16:50 +01:00
|
|
|
zathura_pdf_mupdf = callPackage ./pdf-mupdf {
|
|
|
|
gtk = pkgs.gtk3;
|
|
|
|
};
|
|
|
|
|
2013-11-23 14:19:54 +00:00
|
|
|
zathura_djvu = callPackage ./djvu {
|
|
|
|
gtk = pkgs.gtk3;
|
|
|
|
};
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2013-11-23 14:19:54 +00:00
|
|
|
zathura_ps = callPackage ./ps {
|
|
|
|
gtk = pkgs.gtk3;
|
|
|
|
};
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2013-02-27 22:36:25 +00:00
|
|
|
zathuraWrapper = stdenv.mkDerivation {
|
|
|
|
|
2014-02-20 09:31:16 +00:00
|
|
|
inherit zathura_core icon;
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2012-11-25 17:55:54 +00:00
|
|
|
name = "zathura-${zathura_core.version}";
|
2012-05-14 22:43:46 +01:00
|
|
|
|
2016-04-13 13:53:51 +01:00
|
|
|
plugins_path = stdenv.lib.makeLibraryPath [
|
2012-05-14 22:43:46 +01:00
|
|
|
zathura_djvu
|
|
|
|
zathura_ps
|
2014-05-17 13:16:50 +01:00
|
|
|
(if useMupdf then zathura_pdf_mupdf else zathura_pdf_poppler)
|
2012-05-14 22:43:46 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2014-02-10 20:03:17 +00:00
|
|
|
preferLocalBuild = true;
|
|
|
|
|
2015-05-06 15:34:12 +01:00
|
|
|
meta = with lib; {
|
2012-08-16 15:33:25 +01:00
|
|
|
homepage = http://pwmt.org/projects/zathura/;
|
2012-05-14 22:43:46 +01:00
|
|
|
description = "A highly customizable and functional PDF viewer";
|
|
|
|
longDescription = ''
|
|
|
|
Zathura is a highly customizable and functional PDF viewer based on the
|
|
|
|
poppler rendering library and the gtk+ toolkit. The idea behind zathura
|
|
|
|
is an application that provides a minimalistic and space saving interface
|
|
|
|
as well as an easy usage that mainly focuses on keyboard interaction.
|
|
|
|
'';
|
2015-05-06 15:34:12 +01:00
|
|
|
license = licenses.zlib;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers;[ garbas smironov ];
|
2012-05-14 22:43:46 +01:00
|
|
|
};
|
2010-05-29 22:15:13 +01:00
|
|
|
};
|
|
|
|
}
|
2012-05-14 22:43:46 +01:00
|
|
|
|