mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
Add WordNet, a lexical database for English.
svn path=/nixpkgs/trunk/; revision=10659
This commit is contained in:
parent
fe5caa2f0f
commit
59a2df56b4
25
pkgs/applications/misc/wordnet/default.nix
Normal file
25
pkgs/applications/misc/wordnet/default.nix
Normal file
@ -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/;
|
||||
};
|
||||
}
|
@ -5337,6 +5337,10 @@ rec {
|
||||
includeUnpack = getConfig ["stdenv" "includeUnpack"] false;
|
||||
};
|
||||
|
||||
wordnet = import ../applications/misc/wordnet {
|
||||
inherit stdenv fetchurl tcl tk x11 makeWrapper;
|
||||
};
|
||||
|
||||
wrapFirefox = firefox: nameSuffix: import ../applications/networking/browsers/firefox-wrapper {
|
||||
inherit stdenv firefox nameSuffix;
|
||||
plugins = []
|
||||
|
Loading…
Reference in New Issue
Block a user