about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/conduit/async.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/conduit/async.nix')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/conduit/async.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/conduit/async.nix b/nixpkgs/pkgs/development/ocaml-modules/conduit/async.nix
new file mode 100644
index 000000000000..c15ad0520fb2
--- /dev/null
+++ b/nixpkgs/pkgs/development/ocaml-modules/conduit/async.nix
@@ -0,0 +1,19 @@
+{ lib, buildDunePackage, async, async_ssl, ppx_sexp_conv, conduit }:
+
+if !lib.versionAtLeast conduit.version "1.0"
+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";
+  };
+}