about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/cohttp/lwt.nix
blob: 21bea646d721ef83906162bccc4bb526f3d7219c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ stdenv, ocaml, findlib, jbuilder, cohttp, lwt3, uri, ppx_sexp_conv }:

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;

	buildInputs = [ ocaml findlib jbuilder uri ppx_sexp_conv ];

	propagatedBuildInputs = [ cohttp lwt3 ];

	buildPhase = "jbuilder build -p cohttp-lwt";
}