Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1016 B
Nix
47 lines
1016 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
prevo-tools,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "prevo-data";
|
|
version = "2020-03-08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bpeel";
|
|
repo = "revo";
|
|
rev = "1e8d7197c0bc831e2127909e77e64dfc26906bdd";
|
|
hash = "sha256-308IDx/9LXauvtyjiC9GlHWOj9VMnYy21ouVNuL9sNE=";
|
|
};
|
|
|
|
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/
|
|
'';
|
|
|
|
meta = {
|
|
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";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [
|
|
das-g
|
|
];
|
|
};
|
|
}
|