2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, glib, expat
|
2020-10-11 12:50:04 +00:00
|
|
|
, installShellFiles }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "prevo-tools";
|
|
|
|
version = "0.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bpeel";
|
|
|
|
repo = "prevodb";
|
|
|
|
rev = version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-TfgsZidwXewwqGkb31Qv0SrX8wQdPaK7JQA3nB5h2bs=";
|
2020-10-11 12:50:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config installShellFiles ];
|
|
|
|
buildInputs = [ glib expat ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-11-21 19:51:51 +00:00
|
|
|
installShellCompletion --bash src/prevo-completion
|
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 =
|
|
|
|
"CLI tools for the 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.
|
|
|
|
|
|
|
|
This package provides the command line application prevo to query a local
|
|
|
|
ReVo database, as well as the command line tool revodb to create such a
|
|
|
|
database for this application or for the Android app of the same name.
|
|
|
|
'';
|
|
|
|
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 ];
|
|
|
|
platforms = lib.platforms.unix;
|
2020-10-11 12:50:04 +00:00
|
|
|
};
|
|
|
|
}
|