2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2019-09-02 10:11:00 +01:00
|
|
|
, fetchurl
|
|
|
|
, aspell
|
2020-09-12 14:08:04 +01:00
|
|
|
, pkg-config
|
2019-09-02 10:11:00 +01:00
|
|
|
, glib
|
|
|
|
, hunspell
|
|
|
|
, hspell
|
2021-08-09 01:21:18 +01:00
|
|
|
, nuspell
|
2019-09-02 10:11:00 +01:00
|
|
|
, unittest-cpp
|
|
|
|
}:
|
2018-03-14 13:56:19 +00:00
|
|
|
|
2019-07-01 12:59:35 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-14 13:56:19 +00:00
|
|
|
pname = "enchant";
|
2021-06-17 10:13:41 +01:00
|
|
|
version = "2.3.0";
|
2018-03-14 13:56:19 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-07-01 12:59:35 +01:00
|
|
|
url = "https://github.com/AbiWord/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
|
2021-06-17 10:13:41 +01:00
|
|
|
sha256 = "sha256-32gGO2wTskX6ckaw4JigPnT3qRxtiUe8XE9CzlXi5B0=";
|
2018-03-14 13:56:19 +00:00
|
|
|
};
|
|
|
|
|
2019-09-02 10:11:00 +01:00
|
|
|
nativeBuildInputs = [
|
2020-09-12 14:08:04 +01:00
|
|
|
pkg-config
|
2019-09-02 10:11:00 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
hunspell
|
2021-08-09 01:21:18 +01:00
|
|
|
nuspell
|
2019-09-02 10:11:00 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
unittest-cpp
|
|
|
|
];
|
|
|
|
|
|
|
|
# libtool puts these to .la files
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
hspell
|
|
|
|
aspell
|
|
|
|
];
|
2018-03-14 13:56:19 +00:00
|
|
|
|
2019-07-01 12:59:35 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-09-02 08:25:20 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-relocatable" # needed for tests
|
|
|
|
];
|
2018-04-25 04:20:18 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-03-14 13:56:19 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|