summary refs log tree commit diff
path: root/pkgs/applications/misc/zathura/wrapper.nix
blob: 0f12251a3df2ca6f64602e33bf94b36a23fbaa99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ symlinkJoin, lib, makeWrapper, zathura_core, plugins ? [] }:

let
  pluginsPath = lib.makeLibraryPath plugins;

in symlinkJoin {
  name = "zathura-with-plugins-${zathura_core.version}";

  paths = [ zathura_core ];

  buildInputs = [ makeWrapper ];

  postBuild = ''
    wrapProgram $out/bin/zathura \
      --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.linux;
    maintainers = with maintainers;[ garbas smironov ];
  };
}