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