aboutsummaryrefslogtreecommitdiff
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 00000000000..f16819ed8ae
--- /dev/null
+++ b/nixpkgs/pkgs/development/ocaml-modules/conduit/async.nix
@@ -0,0 +1,19 @@
+{ stdenv, buildDunePackage, async, async_ssl, ppx_sexp_conv, conduit }:
+
+if !stdenv.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";
+ };
+}