diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/zathura/wrapper.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/misc/zathura/wrapper.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/misc/zathura/wrapper.nix b/nixpkgs/pkgs/applications/misc/zathura/wrapper.nix new file mode 100644 index 000000000000..3059c3f725b1 --- /dev/null +++ b/nixpkgs/pkgs/applications/misc/zathura/wrapper.nix @@ -0,0 +1,32 @@ +{ symlinkJoin, lib, makeWrapper, zathura_core, file, plugins ? [] }: + +let + pluginsPath = lib.makeSearchPath "lib/zathura" plugins; + +in symlinkJoin { + name = "zathura-with-plugins-${zathura_core.version}"; + + paths = with zathura_core; [ man dev out ]; + + buildInputs = [ makeWrapper ]; + + postBuild = '' + makeWrapper ${zathura_core.bin}/bin/zathura $out/bin/zathura \ + --prefix PATH ":" "${lib.makeBinPath [ file ]}" \ + --add-flags --plugins-dir=${pluginsPath} + ''; + + meta = with lib; { + homepage = https://pwmt.org/projects/zathura/; + description = "A highly customizable and functional PDF viewer"; + longDescription = '' + Zathura is a highly customizable and functional PDF viewer based on the + poppler rendering library and the gtk+ toolkit. The idea behind zathura + is an application that provides a minimalistic and space saving interface + as well as an easy usage that mainly focuses on keyboard interaction. + ''; + license = licenses.zlib; + platforms = platforms.unix; + maintainers = with maintainers;[ smironov ]; + }; +} |