about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/cohttp
diff options
context:
space:
mode:
authorEric Merritt <eric@afiniate.com>2015-05-15 09:36:30 -0500
committerEric Merritt <eric@afiniate.com>2015-05-24 12:33:23 -0700
commite0f3638fdeeee645a1a8e0e87bab97a6383487fa (patch)
treec3656f5815b748e6ee77a3d9c7e0801874253091 /pkgs/development/ocaml-modules/cohttp
parent38cabebc8d80b1a1bf229376d5dd4fcfa2181696 (diff)
downloadnixlib-e0f3638fdeeee645a1a8e0e87bab97a6383487fa.tar
nixlib-e0f3638fdeeee645a1a8e0e87bab97a6383487fa.tar.gz
nixlib-e0f3638fdeeee645a1a8e0e87bab97a6383487fa.tar.bz2
nixlib-e0f3638fdeeee645a1a8e0e87bab97a6383487fa.tar.lz
nixlib-e0f3638fdeeee645a1a8e0e87bab97a6383487fa.tar.xz
nixlib-e0f3638fdeeee645a1a8e0e87bab97a6383487fa.tar.zst
nixlib-e0f3638fdeeee645a1a8e0e87bab97a6383487fa.zip
ocaml-cohttp: add initial version (0.17.1) to the system
Diffstat (limited to 'pkgs/development/ocaml-modules/cohttp')
-rw-r--r--pkgs/development/ocaml-modules/cohttp/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/cohttp/default.nix b/pkgs/development/ocaml-modules/cohttp/default.nix
new file mode 100644
index 000000000000..e219b59de5de
--- /dev/null
+++ b/pkgs/development/ocaml-modules/cohttp/default.nix
@@ -0,0 +1,29 @@
+{stdenv, buildOcaml, fetchurl, cmdliner, re, uri, fieldslib, sexplib, conduit,
+ stringext, base64, magic-mime, ounit, alcotest, lwt ? null,
+ async ? null, async_ssl ? null}:
+
+buildOcaml rec {
+  name = "cohttp";
+  version = "0.17.1";
+
+  minimumSupportedOcamlVersion = "4.02";
+
+  src = fetchurl {
+    url = "https://github.com/mirage/ocaml-cohttp/archive/v${version}.tar.gz";
+    sha256 = "fb124fb2fb5ff2e74559bf380627f6a537e208c1518ddcb01f0d37b62b55f673";
+  };
+
+  buildInputs = [ alcotest ];
+  propagatedBuildInputs = [ cmdliner re uri fieldslib sexplib sexplib
+                            conduit stringext base64 magic-mime ounit async
+                            async_ssl lwt ];
+
+  buildFlags = "PREFIX=$(out)";
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/mirage/ocaml-cohttp;
+    description = "Very lightweight HTTP server using Lwt or Async";
+    license = licenses.mit;
+    maintainers = [ maintainers.ericbmerritt ];
+  };
+}