summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/conduit/lwt-unix.nix
blob: ce7a33a11eed4d18ab10223f1bf6206259d166ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ stdenv, ocaml, findlib, jbuilder, conduit-lwt
, logs, ppx_sexp_conv
}:

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 ];

	propagatedBuildInputs = [ conduit-lwt logs ];

	buildPhase = "jbuilder build -p conduit-lwt-unix";
}