2021-01-11 12:49:15 +00:00
|
|
|
{ lib, buildDunePackage, async, async_ssl, ppx_sexp_conv, conduit }:
|
2020-07-10 01:51:22 +01:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
if !lib.versionAtLeast conduit.version "1.0"
|
2020-07-10 01:51:22 +01:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|