zathuraPkgs: move default plugins into wrapper

This commit is contained in:
novenary 2024-07-07 12:48:45 +03:00
parent a0f64a2e5f
commit 3dc8993b21
2 changed files with 16 additions and 10 deletions

View File

@ -10,7 +10,9 @@ lib.makeScope pkgs.newScope (
let
callPackage = self.callPackage;
in
rec {
{
inherit useMupdf;
gtk = pkgs.gtk3;
zathura_core = callPackage ./core { };
@ -25,13 +27,6 @@ lib.makeScope pkgs.newScope (
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)
];
};
zathuraWrapper = callPackage ./wrapper.nix { };
}
)

View File

@ -3,8 +3,19 @@
lib,
makeWrapper,
zathura_core,
zathura_djvu,
zathura_ps,
zathura_cb,
zathura_pdf_mupdf,
zathura_pdf_poppler,
file,
plugins ? [ ],
useMupdf,
plugins ? [
zathura_djvu
zathura_ps
zathura_cb
(if useMupdf then zathura_pdf_mupdf else zathura_pdf_poppler)
],
}:
symlinkJoin {
name = "zathura-with-plugins-${zathura_core.version}";