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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1 KiB
Nix
Raw Normal View History

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