mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
37 lines
876 B
Nix
37 lines
876 B
Nix
{stdenv, python, wordnet, writeScript}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "542";
|
|
pname = "dict-db-wordnet";
|
|
|
|
buildInputs = [python wordnet];
|
|
convert = ./wordnet_structures.py;
|
|
|
|
builder = writeScript "builder.sh" ''
|
|
. ${stdenv}/setup
|
|
mkdir -p $out/share/dictd/
|
|
cd $out/share/dictd
|
|
|
|
for i in ${wordnet}/dict/data.*; do
|
|
DATA="$DATA `echo $i | sed -e s,data,index,` $i";
|
|
done
|
|
|
|
python ${convert} $DATA
|
|
echo en_US.UTF-8 > locale
|
|
'';
|
|
|
|
meta = {
|
|
description = "dictd-compatible version of WordNet";
|
|
|
|
longDescription =
|
|
'' WordNet® is a large lexical database of English. This package makes
|
|
the wordnet data available to dictd and by extension for lookup with
|
|
the dict command. '';
|
|
|
|
homepage = https://wordnet.princeton.edu/;
|
|
|
|
maintainers = [ ];
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|