2017-07-01 12:18:34 +02:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild
|
|
|
|
, ppx_driver, ppx_sexp_conv
|
|
|
|
, ipaddr, uri, logs
|
|
|
|
, ocaml_lwt ? null
|
|
|
|
, async ? null, async_ssl ? null
|
|
|
|
, tls ? null
|
2016-11-12 09:39:16 +01:00
|
|
|
}:
|
2015-05-15 16:36:02 +02:00
|
|
|
|
2017-07-01 12:18:34 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.15.4";
|
|
|
|
name = "ocaml${ocaml.version}-conduit-${version}";
|
2015-05-15 16:36:02 +02:00
|
|
|
|
2017-07-01 12:18:34 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mirage";
|
|
|
|
repo = "ocaml-conduit";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1ya7jqvhl8hc22cid5myf31w5c473imdxjnl9785lavsqj3djjxq";
|
|
|
|
};
|
2015-05-15 16:36:02 +02:00
|
|
|
|
2017-07-01 12:18:34 +02:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ppx_driver ppx_sexp_conv
|
|
|
|
ocaml_lwt async async_ssl tls ];
|
|
|
|
propagatedBuildInputs = [ ipaddr uri logs ];
|
2015-05-15 16:36:02 +02:00
|
|
|
|
2017-07-01 12:18:34 +02:00
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Network connection library for TCP and SSL";
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
2015-05-15 16:36:02 +02:00
|
|
|
}
|