nixpkgs/pkgs/applications/misc/zathura/wrapper.nix

33 lines
1 KiB
Nix
Raw Normal View History

2018-08-21 15:27:31 +00:00
{ symlinkJoin, lib, makeWrapper, zathura_core, file, plugins ? [] }:
let
2018-04-11 22:40:17 +00:00
pluginsPath = lib.makeSearchPath "lib/zathura" plugins;
in symlinkJoin {
name = "zathura-with-plugins-${zathura_core.version}";
paths = [ zathura_core ];
buildInputs = [ makeWrapper ];
postBuild = ''
2018-08-21 15:27:31 +00:00
wrapProgram $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;
2018-02-14 19:52:15 +00:00
platforms = platforms.unix;
maintainers = with maintainers;[ garbas smironov ];
};
}