summaryrefslogtreecommitdiffstats
path: root/pkgs/tools
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-01-07 12:20:28 +0100
committerGitHub <noreply@github.com>2021-01-07 12:20:28 +0100
commit5796227734e1fc438a34d1998ae0a44d9b362539 (patch)
tree0484c6b1d933f829947e89f5442f2473f92e3e6b /pkgs/tools
parente3dc56f40c87fe402dd839b1ee3ff570b2d52bf1 (diff)
parent926854440ffd2fc3f926c83c59521dfebf6a2997 (diff)
Merge pull request #108633 from tckmn/add-foma
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/misc/foma/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/misc/foma/default.nix b/pkgs/tools/misc/foma/default.nix
new file mode 100644
index 000000000000..d5fed006173f
--- /dev/null
+++ b/pkgs/tools/misc/foma/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, zlib, flex, bison, readline }:
+
+stdenv.mkDerivation rec {
+ pname = "foma";
+ version = "0.9.18alpha";
+
+ src = fetchFromGitHub {
+ owner = "mhulden";
+ repo = "foma";
+ rev = "4456a40e81f46e3fe909c5a97a15fcf1d2a3b6c1";
+ sha256 = "188yxj8wahlj2yf93rj1vx549j5cq0085d2jmj3vwzbfjq1mi1f0";
+ };
+
+ sourceRoot = "source/foma";
+
+ nativeBuildInputs = [ flex bison ];
+ buildInputs = [ zlib readline ];
+
+ patchPhase = ''
+ substituteInPlace Makefile \
+ --replace '-ltermcap' ' ' \
+ --replace '/usr/local' '$(out)'
+ '';
+
+ meta = with stdenv.lib; {
+ description = "A multi-purpose finite-state toolkit designed for applications ranging from natural language processing to research in automata theory";
+ homepage = "https://github.com/mhulden/foma";
+ license = licenses.asl20;
+ maintainers = [ maintainers.tckmn ];
+ platforms = platforms.all;
+ };
+}