mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
c7f615d8ab
- add man to PATH - allow XDG_DATA_DIRS to be overriden at runtime - unset platform on data and link package, change linux to unix - add a maintainer
30 lines
794 B
Nix
30 lines
794 B
Nix
{ 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 ];
|
|
};
|
|
}
|