nixpkgs-suyu/pkgs/development/libraries/hunspell/default.nix

50 lines
1.8 KiB
Nix
Raw Normal View History

2017-04-23 04:42:59 +02:00
{ stdenv, fetchurl, ncurses, readline, autoreconfHook }:
stdenv.mkDerivation rec {
2018-01-22 02:43:48 +01:00
version = "1.6.2";
2017-04-23 04:42:59 +02:00
name = "hunspell-${version}";
src = fetchurl {
2017-04-23 04:42:59 +02:00
url = "https://github.com/hunspell/hunspell/archive/v${version}.tar.gz";
2018-01-22 02:43:48 +01:00
sha256 = "1i7lsv2cm0713ia3j5wjkcrhpfp3lqpjpwp4d3v18n7ycaqcxn9w";
};
outputs = [ "bin" "dev" "out" "man" ];
buildInputs = [ ncurses readline ];
2017-04-23 04:42:59 +02:00
nativeBuildInputs = [ autoreconfHook ];
autoreconfFlags = "-vfi";
configureFlags = [ "--with-ui" "--with-readline" ];
2016-04-05 18:49:28 +02:00
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 macOS, 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 (macOS port, but Hunspell is part of the macOS 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 ];
};
}