2018-08-21 17:27:31 +02:00
|
|
|
{ symlinkJoin, lib, makeWrapper, zathura_core, file, plugins ? [] }:
|
2016-08-26 02:42:08 +02:00
|
|
|
|
|
|
|
let
|
2018-04-12 00:40:17 +02:00
|
|
|
pluginsPath = lib.makeSearchPath "lib/zathura" plugins;
|
2016-08-26 02:42:08 +02:00
|
|
|
|
|
|
|
in symlinkJoin {
|
|
|
|
name = "zathura-with-plugins-${zathura_core.version}";
|
|
|
|
|
2018-08-11 19:04:06 +02:00
|
|
|
paths = with zathura_core; [ man dev out ];
|
2016-08-26 02:42:08 +02:00
|
|
|
|
2020-03-25 08:16:12 +01:00
|
|
|
inherit plugins;
|
|
|
|
|
2016-08-26 02:42:08 +02:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postBuild = ''
|
2018-08-11 19:04:06 +02:00
|
|
|
makeWrapper ${zathura_core.bin}/bin/zathura $out/bin/zathura \
|
2018-08-21 17:27:31 +02:00
|
|
|
--prefix PATH ":" "${lib.makeBinPath [ file ]}" \
|
|
|
|
--add-flags --plugins-dir=${pluginsPath}
|
2016-08-26 02:42:08 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://git.pwmt.org/pwmt/zathura/";
|
2016-08-26 02:42:08 +02:00
|
|
|
description = "A highly customizable and functional PDF viewer";
|
|
|
|
longDescription = ''
|
|
|
|
Zathura is a highly customizable and functional PDF viewer based on the
|
2019-09-04 00:49:40 +02:00
|
|
|
poppler rendering library and the GTK toolkit. The idea behind zathura
|
2016-08-26 02:42:08 +02:00
|
|
|
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 20:52:15 +01:00
|
|
|
platforms = platforms.unix;
|
2019-08-20 19:36:05 +02:00
|
|
|
maintainers = with maintainers; [ smironov globin ];
|
2016-08-26 02:42:08 +02:00
|
|
|
};
|
|
|
|
}
|