From 930ccdeadea6093e0f425636d1240ba365a403c6 Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Mon, 7 Jun 2021 16:51:13 -0300 Subject: [PATCH] ocamlPackages.cstruct-async: init 6.0.0 --- pkgs/development/ocaml-modules/cstruct/async.nix | 11 +++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 pkgs/development/ocaml-modules/cstruct/async.nix diff --git a/pkgs/development/ocaml-modules/cstruct/async.nix b/pkgs/development/ocaml-modules/cstruct/async.nix new file mode 100644 index 00000000000..579f12776c0 --- /dev/null +++ b/pkgs/development/ocaml-modules/cstruct/async.nix @@ -0,0 +1,11 @@ +{ lib, buildDunePackage, cstruct, async_unix }: + +buildDunePackage rec { + pname = "cstruct-async"; + inherit (cstruct) src version meta useDune2; + + propagatedBuildInputs = [ + async_unix + cstruct + ]; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 07191c8e96f..c6172887833 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -217,6 +217,8 @@ let cstruct = callPackage ../development/ocaml-modules/cstruct {}; + cstruct-async = callPackage ../development/ocaml-modules/cstruct/async.nix { }; + cstruct-lwt = callPackage ../development/ocaml-modules/cstruct/lwt.nix { }; cstruct-sexp = callPackage ../development/ocaml-modules/cstruct/sexp.nix {};