1 { lib, stdenv, fetchFromGitHub, ncurses, readline, autoreconfHook }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-YSJztik0QTZFNR8k8Xu1hakyE16NziDavYVkEUCbtGM=";
14 outputs = [ "bin" "dev" "out" "man" ];
16 buildInputs = [ ncurses readline ];
17 nativeBuildInputs = [ autoreconfHook ];
20 ./0001-Make-hunspell-look-in-XDG_DATA_DIRS-for-dictionaries.patch
27 autoreconfFlags = [ "-vfi" ];
29 configureFlags = [ "--with-ui" "--with-readline" ];
31 hardeningDisable = [ "format" ];
34 homepage = "http://hunspell.sourceforge.net";
35 description = "Spell checker";
37 Hunspell is the spell checker of LibreOffice, OpenOffice.org, Mozilla
38 Firefox 3 & Thunderbird, Google Chrome, and it is also used by
39 proprietary software packages, like macOS, InDesign, memoQ, Opera and
44 * Extended support for language peculiarities; Unicode character encoding, compounding and complex morphology.
45 * Improved suggestion using n-gram similarity, rule and dictionary based pronunciation data.
46 * Morphological analysis, stemming and generation.
47 * Hunspell is based on MySpell and works also with MySpell dictionaries.
48 * C++ library under GPL/LGPL/MPL tri-license.
49 * Interfaces and ports:
50 * Enchant (Generic spelling library from the Abiword project),
51 * XSpell (macOS port, but Hunspell is part of the macOS from version 10.6 (Snow Leopard), and
52 now it is enough to place Hunspell dictionary files into
53 ~/Library/Spelling or /Library/Spelling for spell checking),
54 * Delphi, Java (JNA, JNI), Perl, .NET, Python, Ruby ([1], [2]), UNO.
56 platforms = platforms.all;
57 license = with licenses; [ gpl2 lgpl21 mpl11 ];
58 maintainers = with lib.maintainers; [ ];