about summary refs log tree commit diff
path: root/pkgs/by-name/pr/prevo/package.nix
blob: 5a0ecff4d88536b6ed5ffa9c1bea6212947bdc42 (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
{ lib, symlinkJoin, man, prevo-tools, prevo-data, makeWrapper }:

symlinkJoin rec {
  name = "prevo-${version}";
  inherit (prevo-tools) version;

  paths = [ prevo-tools ];

  nativeBuildInputs = [ makeWrapper ];

  postBuild = ''
    wrapProgram $out/bin/prevo \
      --prefix PATH ":" "${lib.makeBinPath [ man ]}" \
      --suffix XDG_DATA_DIRS : "${prevo-data}/share" \

  '';

  meta = {
    description = "offline version of the Esperanto dictionary Reta Vortaro";
    longDescription = ''
      PReVo is the "portable" ReVo, i.e., the offline version
      of the Esperanto dictionary Reta Vortaro.
    '';
    homepage = "https://github.com/bpeel/prevodb";
    license = lib.licenses.gpl2Only;
    mainProgram = "prevo";
    maintainers = with lib.maintainers; [ das-g ehmry ];
  };
}