2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
2024-09-19 14:19:46 +00:00
|
|
|
useMupdf ? true,
|
2024-06-05 15:53:02 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
callPackage = pkgs.newScope self;
|
|
|
|
|
|
|
|
self = rec {
|
|
|
|
gtk = pkgs.gtk3;
|
|
|
|
|
|
|
|
zathura_core = callPackage ./core { };
|
|
|
|
|
|
|
|
zathura_pdf_poppler = callPackage ./pdf-poppler { };
|
|
|
|
|
|
|
|
zathura_pdf_mupdf = callPackage ./pdf-mupdf { };
|
|
|
|
|
|
|
|
zathura_djvu = callPackage ./djvu { };
|
|
|
|
|
|
|
|
zathura_ps = callPackage ./ps { };
|
|
|
|
|
|
|
|
zathura_cb = callPackage ./cb { };
|
|
|
|
|
|
|
|
zathuraWrapper = callPackage ./wrapper.nix {
|
|
|
|
plugins = [
|
|
|
|
zathura_djvu
|
|
|
|
zathura_ps
|
|
|
|
zathura_cb
|
|
|
|
(if useMupdf then zathura_pdf_mupdf else zathura_pdf_poppler)
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-06-05 15:53:02 +00:00
|
|
|
in
|
|
|
|
self
|