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