lol
1{ stdenv, buildOcaml, fetchurl, ocaml, sexplib_p4, stringext, uri_p4, cstruct, ipaddr_p4
2, asyncSupport ? stdenv.lib.versionAtLeast ocaml.version "4.02"
3, async_p4 ? null, async_ssl_p4 ? null, lwt ? null
4}:
5
6buildOcaml rec {
7 name = "conduit";
8 version = "0.10.0";
9
10 src = fetchurl {
11 url = "https://github.com/mirage/ocaml-conduit/archive/v${version}.tar.gz";
12 sha256 = "1jz2skzsyg0axlkk9s6ahfblfrjx599wisyfs0cvn5dik9jqjadh";
13 };
14
15 propagatedBuildInputs = [ sexplib_p4 stringext uri_p4 cstruct ipaddr_p4 ];
16 buildInputs = stdenv.lib.optional (lwt != null) lwt
17 ++ stdenv.lib.optional (asyncSupport && async_p4 != null) async_p4
18 ++ stdenv.lib.optional (asyncSupport && async_ssl_p4 != null) async_ssl_p4;
19
20 meta = with stdenv.lib; {
21 homepage = https://github.com/mirage/ocaml-conduit;
22 description = "Resolve URIs into communication channels for Async or Lwt ";
23 license = licenses.mit;
24 maintainers = [ maintainers.ericbmerritt ];
25 };
26}