From 052067c306b130d12f6a67eef5d0153963874105 Mon Sep 17 00:00:00 2001 From: r17x Date: Sat, 21 Dec 2024 05:07:30 +0700 Subject: [PATCH] ocamlPackages.gluten-async: init at 0.5.2 --- .../ocaml-modules/gluten/async.nix | 23 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 1 + 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/ocaml-modules/gluten/async.nix diff --git a/pkgs/development/ocaml-modules/gluten/async.nix b/pkgs/development/ocaml-modules/gluten/async.nix new file mode 100644 index 000000000000..b10c99f2d9a7 --- /dev/null +++ b/pkgs/development/ocaml-modules/gluten/async.nix @@ -0,0 +1,23 @@ +{ + buildDunePackage, + gluten, + async, + faraday-async, + core, +}: + +buildDunePackage { + pname = "gluten-async"; + inherit (gluten) src version; + + propagatedBuildInputs = [ + gluten + async + faraday-async + core + ]; + + meta = gluten.meta // { + description = "Async support for gluten"; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 618e94b92721..95edbcf38f1e 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -627,6 +627,7 @@ let gluon = callPackage ../development/ocaml-modules/gluon { }; gluten = callPackage ../development/ocaml-modules/gluten { }; + gluten-async = callPackage ../development/ocaml-modules/gluten/async.nix { }; gluten-eio = callPackage ../development/ocaml-modules/gluten/eio.nix { }; gluten-lwt = callPackage ../development/ocaml-modules/gluten/lwt.nix { }; gluten-lwt-unix = callPackage ../development/ocaml-modules/gluten/lwt-unix.nix { };