2022-08-30 13:35:40 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ncurses, readline, autoreconfHook }:
|
2010-06-30 15:53:28 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-08-30 13:35:40 +00:00
|
|
|
version = "1.7.1";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "hunspell";
|
2010-06-30 15:53:28 +00:00
|
|
|
|
2022-01-04 15:40:24 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hunspell";
|
|
|
|
repo = "hunspell";
|
|
|
|
rev = "v${version}";
|
2022-11-25 18:34:36 +00:00
|
|
|
sha256 = "sha256-J1kgNUElRO63mtU62qU7asf7hht9oyplMIO9I/E6BPU=";
|
2010-06-30 15:53:28 +00:00
|
|
|
};
|
|
|
|
|
2016-08-29 00:30:01 +00:00
|
|
|
outputs = [ "bin" "dev" "out" "man" ];
|
2015-04-18 23:26:19 +00:00
|
|
|
|
|
|
|
buildInputs = [ ncurses readline ];
|
2017-04-23 02:42:59 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2020-02-18 13:13:46 +00:00
|
|
|
patches = [
|
|
|
|
./0001-Make-hunspell-look-in-XDG_DATA_DIRS-for-dictionaries.patch
|
|
|
|
];
|
2019-07-24 19:39:46 +00:00
|
|
|
|
2018-08-08 18:35:48 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs tests
|
|
|
|
'';
|
|
|
|
|
2022-10-03 13:56:51 +00:00
|
|
|
autoreconfFlags = [ "-vfi" ];
|
2017-04-23 02:42:59 +00:00
|
|
|
|
2015-04-18 23:26:19 +00:00
|
|
|
configureFlags = [ "--with-ui" "--with-readline" ];
|
2010-06-30 15:53:28 +00:00
|
|
|
|
2016-04-05 16:49:28 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://hunspell.sourceforge.net";
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Spell checker";
|
2010-06-30 15:53:28 +00:00
|
|
|
longDescription = ''
|
2013-10-06 09:49:53 +00:00
|
|
|
Hunspell is the spell checker of LibreOffice, OpenOffice.org, Mozilla
|
|
|
|
Firefox 3 & Thunderbird, Google Chrome, and it is also used by
|
2017-08-06 22:05:18 +00:00
|
|
|
proprietary software packages, like macOS, InDesign, memoQ, Opera and
|
2013-10-06 09:49:53 +00:00
|
|
|
SDL Trados.
|
|
|
|
|
2010-06-30 15:53:28 +00:00
|
|
|
Main features:
|
2013-10-06 09:49:53 +00:00
|
|
|
|
2010-06-30 15:53:28 +00:00
|
|
|
* Extended support for language peculiarities; Unicode character encoding, compounding and complex morphology.
|
2014-12-30 02:31:03 +00:00
|
|
|
* Improved suggestion using n-gram similarity, rule and dictionary based pronunciation data.
|
2010-06-30 15:53:28 +00:00
|
|
|
* 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),
|
2017-08-06 22:05:18 +00:00
|
|
|
* XSpell (macOS port, but Hunspell is part of the macOS from version 10.6 (Snow Leopard), and
|
2010-06-30 15:53:28 +00:00
|
|
|
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;
|
2018-10-12 21:26:50 +00:00
|
|
|
license = with licenses; [ gpl2 lgpl21 mpl11 ];
|
2021-01-21 17:00:13 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2010-06-30 15:53:28 +00:00
|
|
|
};
|
|
|
|
}
|