depot/third_party/nixpkgs/pkgs/development/libraries/enchant/2.x.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

56 lines
1 KiB
Nix

{ lib, stdenv
, fetchurl
, aspell
, pkg-config
, glib
, hunspell
, hspell
, unittest-cpp
}:
stdenv.mkDerivation rec {
pname = "enchant";
version = "2.2.15";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "https://github.com/AbiWord/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
sha256 = "sha256-Ow8iFVeBFfKOKmqlSbNRKGADlDBL151vKLDTs9b0bAM=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
glib
hunspell
];
checkInputs = [
unittest-cpp
];
# libtool puts these to .la files
propagatedBuildInputs = [
hspell
aspell
];
enableParallelBuilding = true;
doCheck = true;
configureFlags = [
"--enable-relocatable" # needed for tests
];
meta = with 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;
};
}