aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/misc/zathura/wrapper.nix
blob: 7cd52e0c74f10fe512acf5c1b65338d5508ec688 (plain)
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
{ 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 ];
  };
}