2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, prevo-tools }:
|
2020-04-12 01:03:31 +02:00
|
|
|
|
2024-01-16 09:20:37 +01:00
|
|
|
stdenv.mkDerivation {
|
2020-04-12 01:03:31 +02:00
|
|
|
pname = "prevo-data";
|
|
|
|
version = "2020-03-08";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bpeel";
|
|
|
|
repo = "revo";
|
|
|
|
rev = "1e8d7197c0bc831e2127909e77e64dfc26906bdd";
|
|
|
|
sha256 = "1ldhzpi3d5cbssv8r7acsn7qwxcl8qpqi8ywpsp7cbgx3w7hhkyz";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ prevo-tools ];
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
prevodb -s -i $src -o prevo.db
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/prevo
|
|
|
|
cp prevo.db $out/share/prevo/
|
|
|
|
'';
|
|
|
|
|
2024-01-16 09:20:37 +01:00
|
|
|
meta = {
|
2020-04-12 01:03:31 +02:00
|
|
|
description =
|
|
|
|
"data for 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 ReVo database for the prevo command line application.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/bpeel/revo";
|
2024-01-16 09:20:37 +01:00
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
maintainers = with lib.maintainers; [ das-g ehmry ];
|
2020-04-12 01:03:31 +02:00
|
|
|
};
|
|
|
|
}
|