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

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;

	buildInputs = [ ocaml findlib dune ppx_sexp_conv ];

	propagatedBuildInputs = [ conduit lwt3 ];

	buildPhase = "dune build -p conduit-lwt";
}