11 stdenv.mkDerivation rec {
12 pname = "dict-db-wiktionary";
16 url = "https://dumps.wikimedia.org/enwiktionary/${version}/enwiktionary-${version}-pages-articles.xml.bz2";
17 sha256 = "f37e899a9091a1b01137c7b0f3d58813edf3039e9e94ae656694c88859bbe756";
30 mkdir -p $out/share/dictd/
33 source_date=$(date --utc --date=@$SOURCE_DATE_EPOCH "+%F %T")
34 faketime -f "$source_date" ${python3.interpreter} -O ${./wiktionary2dict.py} "${src}"
35 faketime -f "$source_date" dictzip wiktionary-en.dict
36 echo en_US.UTF-8 > locale
39 passthru.updateScript = ./update.sh;
42 description = "DICT version of English Wiktionary";
43 homepage = "https://en.wiktionary.org/";
44 maintainers = with maintainers; [ qyliss ];
45 platforms = platforms.all;
46 license = with licenses; [