10 stdenv.mkDerivation rec {
12 pname = "dict-db-wordnet";
19 convert = ./wordnet_structures.py;
21 builder = writeScript "builder.sh" ''
23 mkdir -p $out/share/dictd/
26 for i in ${wordnet}/dict/data.*; do
27 DATA="$DATA `echo $i | sed -e s,data,index,` $i";
30 source_date=$(date --utc --date=@$SOURCE_DATE_EPOCH "+%F %T")
31 faketime -f "$source_date" python ${convert} $DATA
32 echo en_US.UTF-8 > locale
36 description = "dictd-compatible version of WordNet";
39 WordNet® is a large lexical database of English. This package makes
40 the wordnet data available to dictd and by extension for lookup with
44 homepage = "https://wordnet.princeton.edu/";
47 platforms = lib.platforms.all;