nixpkgs/pkgs/applications/misc/zathura/wrapper.nix
Tethys Svensson f57a658d8e
zathura: symlinkJoin all of plugins (#96630)
* zathura: symlinkJoin all of plugins

* zathura: Add TethysSvensson as a maintainer

Co-authored-by: Matthieu Coudron <mattator@gmail.com>
2020-09-13 18:45:23 +02:00

30 lines
1.0 KiB
Nix

{ symlinkJoin, lib, makeWrapper, zathura_core, file, plugins ? [] }:
symlinkJoin {
name = "zathura-with-plugins-${zathura_core.version}";
paths = with zathura_core; [ man dev out ] ++ plugins;
buildInputs = [ makeWrapper ];
postBuild = ''
makeWrapper ${zathura_core.bin}/bin/zathura $out/bin/zathura \
--prefix PATH ":" "${lib.makeBinPath [ file ]}" \
--add-flags --plugins-dir="$out/lib/zathura"
'';
meta = with lib; {
homepage = "https://git.pwmt.org/pwmt/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 globin TethysSvensson ];
};
}