summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/atd/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/atd/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/atd/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/atd/default.nix b/pkgs/development/ocaml-modules/atd/default.nix
new file mode 100644
index 00000000000..7468900e07e
--- /dev/null
+++ b/pkgs/development/ocaml-modules/atd/default.nix
@@ -0,0 +1,33 @@
+{ lib, menhir, easy-format, fetchurl, buildDunePackage, which, re, nixosTests }:
+
+buildDunePackage rec {
+  pname = "atd";
+  version = "2.2.1";
+
+  useDune2 = true;
+
+  minimumOCamlVersion = "4.02";
+
+  src = fetchurl {
+    url = "https://github.com/ahrefs/atd/releases/download/2.2.1/atd-2.2.1.tbz";
+    sha256 = "17jm79np69ixp53a4njxnlb1pg8sd1g47nm3nyki9clkc8d4qsyv";
+  };
+
+  nativeBuildInputs = [ which menhir ];
+  propagatedBuildInputs = [ easy-format re ];
+
+  strictDeps = true;
+
+  doCheck = true;
+
+  passthru.tests = {
+    smoke-test = nixosTests.atd;
+  };
+
+  meta = with lib; {
+    homepage = "https://github.com/mjambon/atd";
+    description = "Syntax for cross-language type definitions";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ aij jwilberding ];
+  };
+}