about summary refs log tree commit diff
path: root/pkgs/development/libraries/hfst
diff options
context:
space:
mode:
authorJussi Kuokkanen <jussi.kuokkanen@protonmail.com>2023-06-19 15:18:07 +0300
committerJussi Kuokkanen <jussi.kuokkanen@protonmail.com>2023-07-25 19:54:49 +0300
commitb02e3765e7fcaabc5971af82e51221a065da062b (patch)
treefaf7c52f390b5dcf5b76d16ba268283f5772976b /pkgs/development/libraries/hfst
parent22f9b7b279417a8b83a3356f5bd3ed3a51b1de82 (diff)
hfst: init at 3.16.0
Diffstat (limited to 'pkgs/development/libraries/hfst')
-rw-r--r--pkgs/development/libraries/hfst/default.nix53
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/libraries/hfst/default.nix b/pkgs/development/libraries/hfst/default.nix
new file mode 100644
index 0000000000000..41707bbd4986f
--- /dev/null
+++ b/pkgs/development/libraries/hfst/default.nix
@@ -0,0 +1,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;
+  };
+})