1{ lib
2, autoreconfHook
3, bison
4, flex
5, foma
6, fetchFromGitHub
7, gettext
8, icu
9, stdenv
10, swig
11, pkg-config
12, zlib
13}:
14
15stdenv.mkDerivation (finalAttrs: {
16 pname = "hfst";
17 version = "3.16.0";
18
19 src = fetchFromGitHub {
20 owner = "hfst";
21 repo = "hfst";
22 rev = "refs/tags/v${finalAttrs.version}";
23 hash = "sha256-2ST0s08Pcp+hTn7rUTgPE1QkH6PPWtiuFezXV3QW0kU=";
24 };
25
26 nativeBuildInputs = [
27 autoreconfHook
28 bison
29 flex
30 pkg-config
31 swig
32 ];
33
34 buildInputs = [
35 foma
36 gettext
37 icu
38 zlib
39 ];
40
41 configureFlags = [
42 "--enable-all-tools"
43 "--with-foma-upstream=true"
44 ];
45
46 meta = with lib; {
47 description = "FST language processing library";
48 homepage = "https://github.com/hfst/hfst";
49 license = licenses.gpl3Plus;
50 maintainers = with maintainers; [ lurkki ];
51 platforms = platforms.unix;
52 };
53})