2019-09-02 09:11:00 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, aspell
|
2020-09-12 13:08:04 +00:00
|
|
|
, pkg-config
|
2019-09-02 09:11:00 +00:00
|
|
|
, 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";
|
2020-10-25 21:17:24 +00:00
|
|
|
version = "2.2.12";
|
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";
|
2020-10-25 21:17:24 +00:00
|
|
|
sha256 = "0zi20s62gax9rkhwj318kqrxa62pmks6dsdd6m9pzvhlwy5cb6vb";
|
2018-03-14 13:56:19 +00:00
|
|
|
};
|
|
|
|
|
2019-09-02 09:11:00 +00:00
|
|
|
nativeBuildInputs = [
|
2020-09-12 13:08:04 +00:00
|
|
|
pkg-config
|
2019-09-02 09:11:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
hunspell
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
unittest-cpp
|
|
|
|
];
|
|
|
|
|
|
|
|
# libtool puts these to .la files
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
hspell
|
|
|
|
aspell
|
|
|
|
];
|
2018-03-14 13:56:19 +00:00
|
|
|
|
2019-07-01 11:59:35 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-09-02 07:25:20 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-relocatable" # needed for tests
|
|
|
|
];
|
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";
|
2020-02-28 13:57:41 +00:00
|
|
|
homepage = "https://abiword.github.io/enchant/";
|
2018-03-14 13:56:19 +00:00
|
|
|
license = licenses.lgpl21Plus; # with extra provision for non-free checkers
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|