2019-09-02 11:11:00 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, aspell
|
|
|
|
, pkgconfig
|
|
|
|
, glib
|
|
|
|
, hunspell
|
|
|
|
, hspell
|
|
|
|
, unittest-cpp
|
|
|
|
}:
|
2018-03-14 14:56:19 +01:00
|
|
|
|
2019-07-01 13:59:35 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-14 14:56:19 +01:00
|
|
|
pname = "enchant";
|
2020-02-28 14:57:41 +01:00
|
|
|
version = "2.2.8";
|
2018-03-14 14:56:19 +01:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-07-01 13:59:35 +02:00
|
|
|
url = "https://github.com/AbiWord/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
|
2020-02-28 14:57:41 +01:00
|
|
|
sha256 = "0m9m564qqwbssvvf7y3dlz1yxzqsjiqy1yd2zsmb3l0d7y2y5df7";
|
2018-03-14 14:56:19 +01:00
|
|
|
};
|
|
|
|
|
2019-09-02 11:11:00 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
hunspell
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
unittest-cpp
|
|
|
|
];
|
|
|
|
|
|
|
|
# libtool puts these to .la files
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
hspell
|
|
|
|
aspell
|
|
|
|
];
|
2018-03-14 14:56:19 +01:00
|
|
|
|
2019-07-01 13:59:35 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-09-02 09:25:20 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-relocatable" # needed for tests
|
|
|
|
];
|
2018-04-25 05:20:18 +02:00
|
|
|
|
2018-03-14 14:56:19 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Generic spell checking library";
|
2020-02-28 14:57:41 +01:00
|
|
|
homepage = "https://abiword.github.io/enchant/";
|
2018-03-14 14:56:19 +01:00
|
|
|
license = licenses.lgpl21Plus; # with extra provision for non-free checkers
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|