diff --git a/pkgs/development/libraries/hunspell/1.6.nix b/pkgs/development/libraries/hunspell/1.6.nix new file mode 100644 index 000000000000..952050f0e8f7 --- /dev/null +++ b/pkgs/development/libraries/hunspell/1.6.nix @@ -0,0 +1,49 @@ +{ stdenv, fetchurl, ncurses, readline, autoreconfHook }: + +stdenv.mkDerivation rec { + version = "1.6.1"; + name = "hunspell-${version}"; + + src = fetchurl { + url = "https://github.com/hunspell/hunspell/archive/v${version}.tar.gz"; + sha256 = "0j9c20sj7bgd6f77193g1ihy8w905byk2gdhdc0r9dsh7irr7x9h"; + }; + + outputs = [ "bin" "dev" "out" "man" ]; + + buildInputs = [ ncurses readline ]; + nativeBuildInputs = [ autoreconfHook ]; + + autoreconfFlags = "-vfi"; + + configureFlags = [ "--with-ui" "--with-readline" ]; + + hardeningDisable = [ "format" ]; + + meta = with stdenv.lib; { + homepage = http://hunspell.sourceforge.net; + description = "Spell checker"; + longDescription = '' + Hunspell is the spell checker of LibreOffice, OpenOffice.org, Mozilla + Firefox 3 & Thunderbird, Google Chrome, and it is also used by + proprietary software packages, like Mac OS X, InDesign, memoQ, Opera and + SDL Trados. + + Main features: + + * Extended support for language peculiarities; Unicode character encoding, compounding and complex morphology. + * Improved suggestion using n-gram similarity, rule and dictionary based pronunciation 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 = with stdenv.lib.maintainers; [ fuuzetsu ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 84cfd7486891..3557b7b5cffe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7737,6 +7737,7 @@ with pkgs; http-parser = callPackage ../development/libraries/http-parser { }; hunspell = callPackage ../development/libraries/hunspell { }; + hunspell_1_6 = callPackage ../development/libraries/hunspell/1.6.nix { }; hunspellDicts = recurseIntoAttrs (callPackages ../development/libraries/hunspell/dictionaries.nix {});