81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
33 lines
807 B
Nix
33 lines
807 B
Nix
{ config, pkgs
|
|
# zathura_pdf_mupdf fails to load _opj_create_decompress at runtime on Darwin (https://github.com/NixOS/nixpkgs/pull/61295#issue-277982980)
|
|
, useMupdf ? config.zathura.useMupdf or (!pkgs.stdenv.isDarwin) }:
|
|
|
|
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)
|
|
];
|
|
};
|
|
};
|
|
|
|
in self
|