2019-07-01 11:59:35 +00:00
|
|
|
{ stdenv, fetchurl, aspell, pkgconfig, glib, hunspell, hspell, unittest-cpp }:
|
2018-03-14 13:56:19 +00:00
|
|
|
|
2019-07-01 11:59:35 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-14 13:56:19 +00:00
|
|
|
pname = "enchant";
|
2019-07-01 11:59:35 +00:00
|
|
|
version = "2.2.4";
|
2018-03-14 13:56:19 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-07-01 11:59:35 +00:00
|
|
|
url = "https://github.com/AbiWord/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1p6a3qmrh8bjzds6x7rg9da0ir44gg804jzkf634h39wsa4vdmpm";
|
2018-03-14 13:56:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ glib hunspell ];
|
2019-07-01 11:59:35 +00:00
|
|
|
checkInputs = [ unittest-cpp ];
|
2018-03-14 13:56:19 +00:00
|
|
|
propagatedBuildInputs = [ hspell aspell ]; # libtool puts it to la file
|
|
|
|
|
2019-07-01 11:59:35 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = false; # https://github.com/AbiWord/enchant/issues/219
|
2018-04-25 03:20:18 +00:00
|
|
|
|
2018-03-14 13:56:19 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Generic spell checking library";
|
|
|
|
homepage = https://abiword.github.io/enchant/;
|
|
|
|
license = licenses.lgpl21Plus; # with extra provision for non-free checkers
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|