mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 07:31:20 +00:00
211adbeb38
Fixes #17787.
31 lines
625 B
Nix
31 lines
625 B
Nix
{ pkgs, useMupdf ? true, synctexSupport ? true }:
|
|
|
|
let
|
|
callPackage = pkgs.newScope self;
|
|
|
|
self = rec {
|
|
gtk = pkgs.gtk3;
|
|
|
|
zathura_core = callPackage ./core {
|
|
inherit synctexSupport;
|
|
};
|
|
|
|
zathura_pdf_poppler = callPackage ./pdf-poppler { };
|
|
|
|
zathura_pdf_mupdf = callPackage ./pdf-mupdf { };
|
|
|
|
zathura_djvu = callPackage ./djvu { };
|
|
|
|
zathura_ps = callPackage ./ps { };
|
|
|
|
zathuraWrapper = callPackage ./wrapper.nix {
|
|
plugins = [
|
|
zathura_djvu
|
|
zathura_ps
|
|
(if useMupdf then zathura_pdf_mupdf else zathura_pdf_poppler)
|
|
];
|
|
};
|
|
};
|
|
|
|
in self.zathuraWrapper
|