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

53 lines
858 B
Nix

{ lib
, autoreconfHook
, bison
, flex
, foma
, fetchFromGitHub
, gettext
, icu
, stdenv
, swig
, pkg-config
, zlib
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hfst";
version = "3.16.0";
src = fetchFromGitHub {
owner = "hfst";
repo = "hfst";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-2ST0s08Pcp+hTn7rUTgPE1QkH6PPWtiuFezXV3QW0kU=";
};
nativeBuildInputs = [
autoreconfHook
bison
flex
pkg-config
swig
];
buildInputs = [
foma
gettext
icu
zlib
];
configureFlags = [
"--enable-all-tools"
"--with-foma-upstream=true"
];
meta = with lib; {
description = "FST language processing library";
homepage = "https://github.com/hfst/hfst";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ lurkki ];
platforms = platforms.unix;
};
})