lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 17.09-beta 31 lines 886 B view raw
1{stdenv, fetchurl, python, dict, glibcLocales, writeScript}: 2 3stdenv.mkDerivation rec { 4 version = "20161001"; 5 name = "dict-db-wiktionary-${version}"; 6 data = fetchurl { 7 url = "http://dumps.wikimedia.org/enwiktionary/${version}/enwiktionary-${version}-pages-articles.xml.bz2"; 8 sha256 = "0g3k7kxp2nzg0v56i4cz253af3aqvhn1lwkys2fnam51cn3yqm7m"; 9 }; 10 11 convert = ./wiktionary2dict.py; 12 buildInputs = [python dict glibcLocales]; 13 14 builder = writeScript "wiktionary-builder.sh" '' 15 source $stdenv/setup 16 17 mkdir -p $out/share/dictd/ 18 cd $out/share/dictd 19 20 python -O ${convert} ${data} 21 dictzip wiktionary-en.dict 22 echo en_US.UTF-8 > locale 23 ''; 24 25 meta = { 26 description = "DICT version of English Wiktionary"; 27 homepage = http://en.wiktionary.org/; 28 maintainers = [ stdenv.lib.maintainers.mornfall ]; 29 platforms = stdenv.lib.platforms.all; 30 }; 31}