2015-05-15 16:36:02 +02:00
|
|
|
{stdenv, buildOcaml, fetchurl, sexplib, stringext, uri, cstruct, ipaddr,
|
2015-09-06 21:15:10 +02:00
|
|
|
async ? null, async_ssl ? null, lwt ? null}:
|
2015-05-15 16:36:02 +02:00
|
|
|
|
|
|
|
buildOcaml rec {
|
|
|
|
name = "conduit";
|
|
|
|
version = "0.8.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-conduit/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "5cf1a46aa0254345e5143feebe6b54bdef96314e9987f44e69f24618d620faa1";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = ([ sexplib stringext uri cstruct ipaddr ]
|
|
|
|
++ stdenv.lib.optional (lwt != null) lwt
|
|
|
|
++ stdenv.lib.optional (async != null) async
|
2015-09-06 21:15:10 +02:00
|
|
|
++ stdenv.lib.optional (async_ssl != null) async_ssl);
|
2015-05-15 16:36:02 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/mirage/ocaml-conduit;
|
|
|
|
description = "Resolve URIs into communication channels for Async or Lwt ";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ericbmerritt ];
|
|
|
|
};
|
|
|
|
}
|