2018-08-21 16:27:31 +01:00
|
|
|
{ symlinkJoin, lib, makeWrapper, zathura_core, file, plugins ? [] }:
|
2016-08-26 01:42:08 +01:00
|
|
|
|
|
|
|
let
|
2018-04-11 23:40:17 +01:00
|
|
|
pluginsPath = lib.makeSearchPath "lib/zathura" plugins;
|
2016-08-26 01:42:08 +01:00
|
|
|
|
|
|
|
in symlinkJoin {
|
|
|
|
name = "zathura-with-plugins-${zathura_core.version}";
|
|
|
|
|
2018-08-11 18:04:06 +01:00
|
|
|
paths = with zathura_core; [ man dev out ];
|
2016-08-26 01:42:08 +01:00
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postBuild = ''
|
2018-08-11 18:04:06 +01:00
|
|
|
makeWrapper ${zathura_core.bin}/bin/zathura $out/bin/zathura \
|
2018-08-21 16:27:31 +01:00
|
|
|
--prefix PATH ":" "${lib.makeBinPath [ file ]}" \
|
|
|
|
--add-flags --plugins-dir=${pluginsPath}
|
2016-08-26 01:42:08 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://pwmt.org/projects/zathura/;
|
2016-08-26 01:42:08 +01:00
|
|
|
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;
|
2016-08-26 01:42:08 +01:00
|
|
|
maintainers = with maintainers;[ garbas smironov ];
|
|
|
|
};
|
|
|
|
}
|