2021-01-15 22:18:51 +00:00
|
|
|
{ lib, buildDunePackage, async, async_ssl, ppx_sexp_conv, conduit }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
if !lib.versionAtLeast conduit.version "1.0"
|
2020-09-25 04:45:31 +00:00
|
|
|
then conduit
|
|
|
|
else
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "conduit-async";
|
|
|
|
useDune2 = true;
|
|
|
|
inherit (conduit) version src;
|
|
|
|
|
|
|
|
buildInputs = [ ppx_sexp_conv ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ async async_ssl conduit ];
|
|
|
|
|
|
|
|
meta = conduit.meta // {
|
|
|
|
description = "A network connection establishment library for Async";
|
|
|
|
};
|
|
|
|
}
|