2020-05-26 00:23:05 +01:00
|
|
|
{ stdenv, buildDunePackage, async, async_ssl, ppx_sexp_conv, conduit }:
|
2020-07-10 01:51:22 +01:00
|
|
|
|
|
|
|
if !stdenv.lib.versionAtLeast conduit.version "1.0"
|
|
|
|
then conduit
|
|
|
|
else
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "conduit-async";
|
2020-05-26 00:23:05 +01:00
|
|
|
useDune2 = true;
|
2020-07-10 01:51:22 +01:00
|
|
|
inherit (conduit) version src;
|
|
|
|
|
|
|
|
buildInputs = [ ppx_sexp_conv ];
|
|
|
|
|
2020-05-26 00:23:05 +01:00
|
|
|
propagatedBuildInputs = [ async async_ssl conduit ];
|
2020-07-10 01:51:22 +01:00
|
|
|
|
|
|
|
meta = conduit.meta // {
|
|
|
|
description = "A network connection establishment library for Async";
|
|
|
|
};
|
|
|
|
}
|