about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/hfst/default.nix
blob: 41707bbd4986f8e3988404bb56fea46247050f96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ 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;
  };
})