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