2021-03-25 12:14:44 +01:00
|
|
|
{ lib, stdenv, fetchurl, python2, dict, glibcLocales }:
|
2021-02-11 17:25:11 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "20210201";
|
|
|
|
pname = "dict-db-wiktionary";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dumps.wikimedia.org/enwiktionary/${version}/enwiktionary-${version}-pages-articles.xml.bz2";
|
|
|
|
sha256 = "0dc34cbadsg0f6lhfcyx0np7zjnlg6837piqhlvnn0b45xnzn0cs";
|
|
|
|
};
|
|
|
|
|
|
|
|
convert = ./wiktionary2dict.py;
|
2021-03-25 12:14:44 +01:00
|
|
|
buildInputs = [ python2 dict glibcLocales ];
|
2021-02-11 17:25:11 +01:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2021-02-11 17:43:36 +01:00
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2021-02-11 17:25:11 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "DICT version of English Wiktionary";
|
|
|
|
homepage = "http://en.wiktionary.org/";
|
|
|
|
maintainers = with maintainers; [ qyliss ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = with licenses; [ cc-by-sa-30 fdl11Plus ];
|
|
|
|
};
|
|
|
|
}
|