2016-09-14 02:21:56 +02:00
|
|
|
{stdenv, buildOcaml, fetchurl, cmdliner, re, uri, fieldslib_p4, sexplib_p4, conduit,
|
2015-05-15 16:36:30 +02:00
|
|
|
stringext, base64, magic-mime, ounit, alcotest, lwt ? null,
|
2015-09-06 21:15:10 +02:00
|
|
|
async ? null, async_ssl ? null}:
|
2015-05-15 16:36:30 +02:00
|
|
|
|
|
|
|
buildOcaml rec {
|
|
|
|
name = "cohttp";
|
2016-01-12 16:14:07 +01:00
|
|
|
version = "0.19.3";
|
2015-05-15 16:36:30 +02:00
|
|
|
|
|
|
|
minimumSupportedOcamlVersion = "4.02";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-cohttp/archive/v${version}.tar.gz";
|
2016-01-12 16:14:07 +01:00
|
|
|
sha256 = "1nrzpd4h52c1hnzcgsz462676saj9zss708ng001h54dglk8i1iv";
|
2015-05-15 16:36:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ alcotest ];
|
2016-09-14 02:21:56 +02:00
|
|
|
propagatedBuildInputs = [ cmdliner re uri fieldslib_p4 sexplib_p4 sexplib_p4
|
2015-05-15 16:36:30 +02:00
|
|
|
conduit stringext base64 magic-mime ounit async
|
2015-09-06 21:15:10 +02:00
|
|
|
async_ssl lwt ];
|
2015-05-15 16:36:30 +02:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|