2018-09-05 18:11:47 +02:00
|
|
|
{ stdenv, ocaml, findlib, dune, cohttp-lwt
|
2017-08-27 21:00:55 +02:00
|
|
|
, conduit-lwt-unix, ppx_sexp_conv
|
|
|
|
, cmdliner, fmt, magic-mime
|
|
|
|
}:
|
|
|
|
|
|
|
|
if !stdenv.lib.versionAtLeast cohttp-lwt.version "0.99"
|
|
|
|
then cohttp-lwt
|
|
|
|
else
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-cohttp-lwt-unix-${version}";
|
|
|
|
inherit (cohttp-lwt) version src installPhase meta;
|
|
|
|
|
2018-09-05 18:11:47 +02:00
|
|
|
buildInputs = [ ocaml findlib dune cmdliner ppx_sexp_conv ];
|
2017-08-27 21:00:55 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ cohttp-lwt conduit-lwt-unix fmt magic-mime ];
|
|
|
|
|
2018-09-05 18:11:47 +02:00
|
|
|
buildPhase = "dune build -p cohttp-lwt-unix";
|
2017-08-27 21:00:55 +02:00
|
|
|
}
|