2017-02-18 22:54:02 +01:00
|
|
|
{ stdenv, buildOcaml, fetchurl, ocaml, sexplib_p4, stringext, uri_p4, cstruct, ipaddr_p4
|
2016-11-12 09:39:16 +01:00
|
|
|
, asyncSupport ? stdenv.lib.versionAtLeast ocaml.version "4.02"
|
|
|
|
, async_p4 ? null, async_ssl_p4 ? 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";
|
|
|
|
};
|
|
|
|
|
2017-02-18 22:54:02 +01:00
|
|
|
propagatedBuildInputs = [ sexplib_p4 stringext uri_p4 cstruct ipaddr_p4 ];
|
2016-11-12 09:39:16 +01:00
|
|
|
buildInputs = stdenv.lib.optional (lwt != null) lwt
|
|
|
|
++ stdenv.lib.optional (asyncSupport && async_p4 != null) async_p4
|
|
|
|
++ stdenv.lib.optional (asyncSupport && async_ssl_p4 != null) async_ssl_p4;
|
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 ];
|
|
|
|
};
|
|
|
|
}
|