about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/prevo/default.nix
blob: 92d78869503552a5cef7a27f4a47eef635ddc260 (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
{ lib, stdenv, symlinkJoin, 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 XDG_DATA_DIRS : "${prevo-data}/share"
  '';

  meta = with lib; {
    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 = licenses.gpl2Only;
    maintainers = [ maintainers.das-g ];
    platforms = platforms.linux;
  };
}