at 15.09-beta 24 lines 906 B view raw
1{stdenv, buildOcaml, fetchurl, sexplib, stringext, uri, cstruct, ipaddr, 2 async ? null, async_ssl ? null, lwt ? null}: 3 4buildOcaml rec { 5 name = "conduit"; 6 version = "0.8.3"; 7 8 src = fetchurl { 9 url = "https://github.com/mirage/ocaml-conduit/archive/v${version}.tar.gz"; 10 sha256 = "5cf1a46aa0254345e5143feebe6b54bdef96314e9987f44e69f24618d620faa1"; 11 }; 12 13 propagatedBuildInputs = ([ sexplib stringext uri cstruct ipaddr ] 14 ++ stdenv.lib.optional (lwt != null) lwt 15 ++ stdenv.lib.optional (async != null) async 16 ++ stdenv.lib.optional (async_ssl != null) async_ssl); 17 18 meta = with stdenv.lib; { 19 homepage = https://github.com/mirage/ocaml-conduit; 20 description = "Resolve URIs into communication channels for Async or Lwt "; 21 license = licenses.mit; 22 maintainers = [ maintainers.ericbmerritt ]; 23 }; 24}