2017-08-27 20:00:55 +01:00
|
|
|
{ stdenv, ocaml, findlib, jbuilder, conduit-lwt
|
2018-05-15 14:31:28 +01:00
|
|
|
, logs, ppx_sexp_conv, lwt_ssl
|
2017-08-27 20:00:55 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
if !stdenv.lib.versionAtLeast conduit-lwt.version "1.0"
|
|
|
|
then conduit-lwt
|
|
|
|
else
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-conduit-lwt-unix-${version}";
|
|
|
|
inherit (conduit-lwt) version src installPhase meta;
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib jbuilder ppx_sexp_conv ];
|
|
|
|
|
2018-05-15 14:31:28 +01:00
|
|
|
propagatedBuildInputs = [ conduit-lwt logs lwt_ssl ];
|
2017-08-27 20:00:55 +01:00
|
|
|
|
|
|
|
buildPhase = "jbuilder build -p conduit-lwt-unix";
|
|
|
|
}
|