2016-08-26 03:42:08 +03:00
|
|
|
{ pkgs, useMupdf ? true, synctexSupport ? true }:
|
2012-05-15 01:43:46 +04:00
|
|
|
|
2016-08-26 03:42:08 +03:00
|
|
|
let
|
|
|
|
callPackage = pkgs.newScope self;
|
2012-05-15 01:43:46 +04:00
|
|
|
|
2016-08-26 03:42:08 +03:00
|
|
|
self = rec {
|
2013-11-23 18:19:54 +04:00
|
|
|
gtk = pkgs.gtk3;
|
2012-05-15 01:43:46 +04:00
|
|
|
|
2016-08-26 03:42:08 +03:00
|
|
|
zathura_core = callPackage ./core {
|
|
|
|
inherit synctexSupport;
|
|
|
|
};
|
2012-05-15 01:43:46 +04:00
|
|
|
|
2016-08-26 03:42:08 +03:00
|
|
|
zathura_pdf_poppler = callPackage ./pdf-poppler { };
|
2012-05-15 01:43:46 +04:00
|
|
|
|
2016-08-26 03:42:08 +03:00
|
|
|
zathura_pdf_mupdf = callPackage ./pdf-mupdf { };
|
2012-05-15 01:43:46 +04:00
|
|
|
|
2016-08-26 03:42:08 +03:00
|
|
|
zathura_djvu = callPackage ./djvu { };
|
2012-05-15 01:43:46 +04:00
|
|
|
|
2016-08-26 03:42:08 +03:00
|
|
|
zathura_ps = callPackage ./ps { };
|
2014-02-11 00:03:17 +04:00
|
|
|
|
2016-08-26 03:42:08 +03:00
|
|
|
zathuraWrapper = callPackage ./wrapper.nix {
|
|
|
|
plugins = [
|
|
|
|
zathura_djvu
|
|
|
|
zathura_ps
|
|
|
|
(if useMupdf then zathura_pdf_mupdf else zathura_pdf_poppler)
|
|
|
|
];
|
2012-05-15 01:43:46 +04:00
|
|
|
};
|
2010-05-30 01:15:13 +04:00
|
|
|
};
|
2012-05-15 01:43:46 +04:00
|
|
|
|
2016-08-26 03:42:08 +03:00
|
|
|
in self.zathuraWrapper
|