2024-01-25 14:12:00 +00:00
|
|
|
{ lib, symlinkJoin, man, prevo-tools, prevo-data, makeWrapper }:
|
2020-10-11 12:50:04 +00:00
|
|
|
|
|
|
|
symlinkJoin rec {
|
|
|
|
name = "prevo-${version}";
|
|
|
|
inherit (prevo-tools) version;
|
|
|
|
|
|
|
|
paths = [ prevo-tools ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/prevo \
|
2024-01-25 14:12:00 +00:00
|
|
|
--prefix PATH ":" "${lib.makeBinPath [ man ]}" \
|
|
|
|
--suffix XDG_DATA_DIRS : "${prevo-data}/share" \
|
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
'';
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
meta = {
|
2020-10-11 12:50:04 +00:00
|
|
|
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";
|
2024-01-25 14:12:00 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
mainProgram = "prevo";
|
|
|
|
maintainers = with lib.maintainers; [ das-g ehmry ];
|
2020-10-11 12:50:04 +00:00
|
|
|
};
|
|
|
|
}
|