How to customize zathura here

I don’t want poppler, djvu and zathura_ps (postscript) for zathura. I wanna use just the Mupdf backend. How can I do that?

By just looking at the top-level/all-packages.nix and applications/misc/zathura/default.nix (which is what pkgs.zathuraPkgs pointed to), you may try this (untested):

pkgs.zathuraPkgs.zathura_pdf_mupdf

And by looking at applications/misc/zathura/wrapper.nix (which is what pkgs.zathura pointed to), or maybe you can do this (untested) to also get the zathura fish completion if you need it.

(pkgs.zathura.override { plugins = with pkgs.zathuraPkgs; [ zathura_pdf_mupdf ]; })
1 Like

Tried plugins = with pkgs; [ zathura_cb ]; But it says that attribute zathura_cb not found. But works with pkgs.zathuraPkgs. How do I see this? I mean niether the nixos store website nor the mynixos website lists this option.

would also be interested in understanding this.

More often than not there seem to be derivations of plugins (as visible in the repository) not be listed in the search frontends, -with-plugins query

Then again some are, i. e. gimp plugins.

1 Like

Okay got it. Thanks for the point that I gotta look in the repo of the package (whatever derivations are, that is) and then make changes.

Oh I wasn’t quite aware that this answered your question already thought you mean the not so good discovery of derivations.
derivations btw everything that is generated by a mkDerivation function (nix lingo).

1 Like

Well, I do mean it. I did search for zathura-with-plugins package on the nix store. The annoying thing (or perhaps a thing of less skill on my side maybe) is that the zathura’s nix source doesn’t say anything about pkgs.zathuraPkgs thing. I, as a novice, wouldn’t be able to tell that to customize the zathura package (or any likes of it) with just with pkgs; or with pkgs.zathuraPkgs

It is defined at this location in all-packages.nix which is a bit inconvenient to have to first discover and then the fact gets long term memory when I use it more often, I would be happy to have a more directed way especially for starters too. It is a bit twofold sometimes, on the one hand I try to declare what possible but then other hand I have to get a hang to do code searches and queries whenever somethings more implicit.