17 (if useMupdf then zathura_pdf_mupdf else zathura_pdf_poppler)
21 name = "zathura-with-plugins-${zathura_core.version}";
32 nativeBuildInputs = [ makeWrapper ];
36 fishCompletion = "share/fish/vendor_completions.d/zathura.fish";
39 makeWrapper ${zathura_core.bin}/bin/zathura $out/bin/zathura \
40 --prefix PATH ":" "${lib.makeBinPath [ file ]}" \
41 --prefix ZATHURA_PLUGINS_PATH : "$out/lib/zathura"
43 # zathura fish completion references the zathura_core derivation to
44 # check for supported plugins which live in the wrapper derivation,
45 # so we need to fix the path to reference $out instead.
46 rm "$out/${fishCompletion}"
47 substitute "${zathura_core.out}/${fishCompletion}" "$out/${fishCompletion}" \
48 --replace "${zathura_core.out}" "$out"
52 homepage = "https://pwmt.org/projects/zathura/";
53 description = "Highly customizable and functional PDF viewer";
55 Zathura is a highly customizable and functional PDF viewer based on the
56 poppler rendering library and the GTK toolkit. The idea behind zathura
57 is an application that provides a minimalistic and space saving interface
58 as well as an easy usage that mainly focuses on keyboard interaction.
60 license = licenses.zlib;
61 platforms = platforms.unix;
62 maintainers = with maintainers; [
67 mainProgram = "zathura";