summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/cow/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/cow/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/cow/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/cow/default.nix b/pkgs/development/ocaml-modules/cow/default.nix
new file mode 100644
index 00000000000..13ee99804d8
--- /dev/null
+++ b/pkgs/development/ocaml-modules/cow/default.nix
@@ -0,0 +1,30 @@
+{ lib, fetchurl, buildDunePackage, alcotest
+, uri, xmlm, omd, ezjsonm }:
+
+buildDunePackage rec {
+  useDune2 = true;
+  minimumOCamlVersion = "4.02.3";
+
+  version = "2.4.0";
+  pname = "cow";
+
+  src = fetchurl {
+    url = "https://github.com/mirage/ocaml-cow/releases/download/v${version}/cow-v${version}.tbz";
+    sha256 = "1x77lwpskda4zyikwxh500xjn90pgdwz6jm7ca7f36pyav4vl6zx";
+  };
+
+  propagatedBuildInputs = [ xmlm uri ezjsonm omd ];
+  checkInputs = [ alcotest ];
+  doCheck = true;
+
+  meta = with lib; {
+    description = "Caml on the Web";
+    longDescription = ''
+      Writing web-applications requires a lot of skills: HTML, XML, JSON and
+      Markdown, to name but a few! This library provides OCaml combinators
+      for these web formats.
+    '';
+    license = licenses.isc;
+    maintainers = [ maintainers.sternenseemann ];
+  };
+}