2018-09-05 17:11:47 +01:00
|
|
|
{ stdenv, ocaml, findlib, dune, ppx_sexp_conv, conduit, lwt3 }:
|
2017-08-27 20:00:55 +01:00
|
|
|
|
|
|
|
if !stdenv.lib.versionAtLeast conduit.version "1.0"
|
|
|
|
then conduit
|
|
|
|
else
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-conduit-lwt-${version}";
|
|
|
|
inherit (conduit) version src installPhase meta;
|
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
buildInputs = [ ocaml findlib dune ppx_sexp_conv ];
|
2017-08-27 20:00:55 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ conduit lwt3 ];
|
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
buildPhase = "dune build -p conduit-lwt";
|
2017-08-27 20:00:55 +01:00
|
|
|
}
|