Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / hfst / default.nix
blob41707bbd4986f8e3988404bb56fea46247050f96
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
15 stdenv.mkDerivation (finalAttrs: {
16   pname = "hfst";
17   version = "3.16.0";
19   src = fetchFromGitHub {
20     owner = "hfst";
21     repo = "hfst";
22     rev = "refs/tags/v${finalAttrs.version}";
23     hash = "sha256-2ST0s08Pcp+hTn7rUTgPE1QkH6PPWtiuFezXV3QW0kU=";
24   };
26   nativeBuildInputs = [
27     autoreconfHook
28     bison
29     flex
30     pkg-config
31     swig
32   ];
34   buildInputs = [
35     foma
36     gettext
37     icu
38     zlib
39   ];
41   configureFlags = [
42     "--enable-all-tools"
43     "--with-foma-upstream=true"
44   ];
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   };