2008-02-13 14:26:01 +00:00
|
|
|
{stdenv, fetchurl, tcl, tk, x11, makeWrapper}:
|
|
|
|
|
2010-02-08 13:53:16 +00:00
|
|
|
let version = "3.0"; in
|
2008-02-13 14:26:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2010-02-08 13:53:16 +00:00
|
|
|
name = "wordnet-${version}";
|
2008-02-13 14:26:01 +00:00
|
|
|
src = fetchurl {
|
2010-02-08 13:53:16 +00:00
|
|
|
url = "http://wordnetcode.princeton.edu/${version}/WordNet-${version}.tar.bz2";
|
|
|
|
sha256 = "08pgjvd2vvmqk3h641x63nxp7wqimb9r30889mkyfh2agc62sjbc";
|
2008-02-13 14:26:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [tcl tk x11 makeWrapper];
|
|
|
|
|
|
|
|
# Needs the path to `tclConfig.sh' and `tkConfig.sh'.
|
|
|
|
configureFlags = "--with-tcl=" + tcl + "/lib " +
|
|
|
|
"--with-tk=" + tk + "/lib";
|
|
|
|
|
|
|
|
postInstall = ''
|
2010-05-28 11:57:50 +01:00
|
|
|
wrapProgram $out/bin/wishwn --set TK_LIBRARY "${tk}/lib/${tk.libPrefix}"
|
2008-02-13 14:26:01 +00:00
|
|
|
wrapProgram $out/bin/wnb --prefix PATH : "$out/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2010-02-08 13:53:16 +00:00
|
|
|
description = "WordNet, a lexical database for the English language";
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' WordNet® is a large lexical database of English. Nouns, verbs,
|
|
|
|
adjectives and adverbs are grouped into sets of cognitive synonyms
|
|
|
|
(synsets), each expressing a distinct concept. Synsets are
|
|
|
|
interlinked by means of conceptual-semantic and lexical relations.
|
|
|
|
The resulting network of meaningfully related words and concepts can
|
|
|
|
be navigated with the browser. WordNet is also freely and publicly
|
|
|
|
available for download. WordNet's structure makes it a useful tool
|
|
|
|
for computational linguistics and natural language processing.
|
|
|
|
'';
|
|
|
|
|
2008-02-13 14:26:01 +00:00
|
|
|
homepage = http://wordnet.princeton.edu/;
|
2010-02-08 13:53:16 +00:00
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
2008-02-13 14:26:01 +00:00
|
|
|
};
|
|
|
|
}
|