depot/third_party/nixpkgs/pkgs/development/libraries/hfst-ospell/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

46 lines
1 KiB
Nix

{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, icu
, libarchive
, pkg-config
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hfst-ospell";
version = "0.5.3";
src = fetchFromGitHub {
owner = "hfst";
repo = "hfst-ospell";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-16H1nbAIe+G71+TnlLG0WnH9LktZwmc0d0O+oYduH1k=";
};
buildInputs = [
icu
libarchive
];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
# libxmlxx is listed as a dependency but Darwin build fails with it,
# might also be better in general since libxmlxx in Nixpkgs is 8 years old
# https://github.com/hfst/hfst-ospell/issues/48#issuecomment-546535653
configureFlags = [
"--without-libxmlpp"
"--without-tinyxml2"
];
meta = with lib; {
homepage = "https://github.com/hfst/hfst-ospell/";
description = "HFST spell checker library and command line tool ";
license = licenses.asl20;
maintainers = with maintainers; [ lurkki ];
platforms = platforms.unix;
};
})