nixpkgs/pkgs/development/libraries/enchant/2.x.nix

57 lines
1.0 KiB
Nix
Raw Normal View History

2019-09-02 10:11:00 +01:00
{ stdenv
, fetchurl
, aspell
, pkgconfig
, glib
, hunspell
, hspell
, unittest-cpp
}:
2018-03-14 13:56:19 +00:00
stdenv.mkDerivation rec {
2018-03-14 13:56:19 +00:00
pname = "enchant";
version = "2.2.5";
2018-03-14 13:56:19 +00:00
outputs = [ "out" "dev" ];
src = fetchurl {
url = "https://github.com/AbiWord/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
sha256 = "0r41qjz3104h5raiwlw5ywwybafbxdjz12j1bnq3kq60jlr6d2pf";
2018-03-14 13:56:19 +00:00
};
2019-09-02 10:11:00 +01:00
nativeBuildInputs = [
pkgconfig
];
buildInputs = [
glib
hunspell
];
checkInputs = [
unittest-cpp
];
# libtool puts these to .la files
propagatedBuildInputs = [
hspell
aspell
];
2018-03-14 13:56:19 +00:00
enableParallelBuilding = true;
doCheck = true;
configureFlags = [
"--enable-relocatable" # needed for tests
];
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;
};
}