summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2010-06-30 15:53:28 +0000
committerYury G. Kudryashov <urkud.urkud@gmail.com>2010-06-30 15:53:28 +0000
commitdc475a09a90c560a3d27836bf87731c642cf44ab (patch)
tree4433fea3adf50ec1dd040a47d12d499892e0271d /pkgs
parent1bd76098fe66f182640af3fdd8ea1a47ca6d3a63 (diff)
downloadnixlib-dc475a09a90c560a3d27836bf87731c642cf44ab.tar
nixlib-dc475a09a90c560a3d27836bf87731c642cf44ab.tar.gz
nixlib-dc475a09a90c560a3d27836bf87731c642cf44ab.tar.bz2
nixlib-dc475a09a90c560a3d27836bf87731c642cf44ab.tar.lz
nixlib-dc475a09a90c560a3d27836bf87731c642cf44ab.tar.xz
nixlib-dc475a09a90c560a3d27836bf87731c642cf44ab.tar.zst
nixlib-dc475a09a90c560a3d27836bf87731c642cf44ab.zip
Add hunspell
TODO: make it work (export DICTDIR)

svn path=/nixpkgs/trunk/; revision=22432
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/hunspell/default.nix34
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/libraries/hunspell/default.nix b/pkgs/development/libraries/hunspell/default.nix
new file mode 100644
index 000000000000..1eb9b9c13382
--- /dev/null
+++ b/pkgs/development/libraries/hunspell/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchurl, ncurses, readline }:
+
+stdenv.mkDerivation rec {
+  name = "hunspell-1.2.11";
+
+  src = fetchurl {
+    url = "mirror://sf/hunspell/${name}.tar.gz";
+    sha256 = "14vfs1qb01hq30ss1bsiv6lkx673695g0xdyisrq720fdq2mr5rz";
+  };
+
+  propagatedBuildInputs = [ ncurses readline ];
+  configureFlags = "--with-ui --with-readline";
+
+  meta = with stdenv.lib; {
+    homepage = http://hunspell.sourceforge.net;
+    description = "The spell checker of OpenOffice.org and Mozilla Firefox 3 & Thunderbird, Google Chrome etc.";
+    longDescription = ''
+      Main features:
+      * Extended support for language peculiarities; Unicode character encoding, compounding and complex morphology.
+      * Improved suggestion using n-gram similarity, rule and dictionary based pronounciation data.
+      * Morphological analysis, stemming and generation.
+      * Hunspell is based on MySpell and works also with MySpell dictionaries.
+      * C++ library under GPL/LGPL/MPL tri-license.
+      * Interfaces and ports:
+        * Enchant (Generic spelling library from the Abiword project),
+        * XSpell (Mac OS X port, but Hunspell is part of the OS X from version 10.6 (Snow Leopard), and
+            now it is enough to place Hunspell dictionary files into
+            ~/Library/Spelling or /Library/Spelling for spell checking),
+        * Delphi, Java (JNA, JNI), Perl, .NET, Python, Ruby ([1], [2]), UNO.
+    '';
+    platforms = platforms.all;
+    maintainers = [ maintainers.urkud ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 15086b5c7ed1..e8ecb653abf6 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4253,6 +4253,10 @@ let
     inherit stdenv fetchurl unzip;
   };
 
+  hunspell = makeOverridable (import ../development/libraries/hunspell) {
+    inherit fetchurl stdenv ncurses readline;
+  };
+
   hwloc = import ../development/libraries/hwloc {
     inherit fetchurl stdenv pkgconfig cairo expat ncurses;
   };