diff options
author | Ludovic Courtès <ludo@gnu.org> | 2008-02-13 14:26:01 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2008-02-13 14:26:01 +0000 |
commit | 59a2df56b4a32cc7d1c78f84020ea8c10672f2fb (patch) | |
tree | 9817d6c4467292636ad31d5a064ca5757eef16c0 /pkgs/applications/misc/wordnet | |
parent | fe5caa2f0f896c0e806690610f111e6cff250d2d (diff) |
Add WordNet, a lexical database for English.
svn path=/nixpkgs/trunk/; revision=10659
Diffstat (limited to 'pkgs/applications/misc/wordnet')
-rw-r--r-- | pkgs/applications/misc/wordnet/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/misc/wordnet/default.nix b/pkgs/applications/misc/wordnet/default.nix new file mode 100644 index 000000000000..7300959fde75 --- /dev/null +++ b/pkgs/applications/misc/wordnet/default.nix @@ -0,0 +1,25 @@ +{stdenv, fetchurl, tcl, tk, x11, makeWrapper}: + +stdenv.mkDerivation { + name = "wordnet-3.0"; + src = fetchurl { + url = http://wordnet.princeton.edu/3.0/WordNet-3.0.tar.bz2; + sha256 = "6c492d0c7b4a40e7674d088191d3aa11f373bb1da60762e098b8ee2dda96ef22"; + }; + + buildInputs = [tcl tk x11 makeWrapper]; + + # Needs the path to `tclConfig.sh' and `tkConfig.sh'. + configureFlags = "--with-tcl=" + tcl + "/lib " + + "--with-tk=" + tk + "/lib"; + + postInstall = '' + wrapProgram $out/bin/wishwn --set TK_LIBRARY "${tk}/lib/tk8.4" + wrapProgram $out/bin/wnb --prefix PATH : "$out/bin" + ''; + + meta = { + description = "WordNet, a lexical database for the English language."; + homepage = http://wordnet.princeton.edu/; + }; +} |