2015-05-15 15:36:30 +01:00
|
|
|
{stdenv, buildOcaml, fetchurl, cmdliner, re, uri, fieldslib, sexplib, conduit,
|
|
|
|
stringext, base64, magic-mime, ounit, alcotest, lwt ? null,
|
2015-09-02 08:14:59 +01:00
|
|
|
async ? null, async-ssl ? null}:
|
2015-05-15 15:36:30 +01:00
|
|
|
|
|
|
|
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
|
2015-09-02 08:14:59 +01:00
|
|
|
async-ssl lwt ];
|
2015-05-15 15:36:30 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|