From 1d35a119c7a91786285adcede1e126c4aaf153b6 Mon Sep 17 00:00:00 2001 From: Laurent Canis Date: Fri, 28 Apr 2023 10:46:52 -0400 Subject: [PATCH] ocamlPackages.aches: init at 1.0.0 --- .../development/ocaml-modules/aches/default.nix | 16 ++++++++++++++++ pkgs/development/ocaml-modules/aches/lwt.nix | 17 +++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 3 files changed, 35 insertions(+) create mode 100644 pkgs/development/ocaml-modules/aches/default.nix create mode 100644 pkgs/development/ocaml-modules/aches/lwt.nix diff --git a/pkgs/development/ocaml-modules/aches/default.nix b/pkgs/development/ocaml-modules/aches/default.nix new file mode 100644 index 00000000000..c590ecc04bd --- /dev/null +++ b/pkgs/development/ocaml-modules/aches/default.nix @@ -0,0 +1,16 @@ +{ lib, buildDunePackage, ringo }: + +buildDunePackage { + pname = "aches"; + inherit (ringo) src version; + + propagatedBuildInputs = [ + ringo + ]; + + meta = { + description = "Caches (bounded-size stores) for in-memory values and for resources"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.ulrikstrid ]; + }; +} diff --git a/pkgs/development/ocaml-modules/aches/lwt.nix b/pkgs/development/ocaml-modules/aches/lwt.nix new file mode 100644 index 00000000000..bfb57a5a91a --- /dev/null +++ b/pkgs/development/ocaml-modules/aches/lwt.nix @@ -0,0 +1,17 @@ +{ lib, buildDunePackage, ringo, aches, lwt }: + +buildDunePackage { + pname = "aches-lwt"; + inherit (ringo) src version; + + propagatedBuildInputs = [ + aches + lwt + ]; + + meta = { + description = "Caches (bounded-size stores) for Lwt promises"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.ulrikstrid ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 50965dc0ebe..0807005d687 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -9,6 +9,8 @@ let inherit ocaml; ### A ### + aches = callPackage ../development/ocaml-modules/aches { }; + aches-lwt = callPackage ../development/ocaml-modules/aches/lwt.nix { }; afl-persistent = callPackage ../development/ocaml-modules/afl-persistent { };