summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Canis <laurent@marigold.dev>2023-04-28 10:46:52 -0400
committerUlrik Strid <ulrik.strid@outlook.com>2023-05-02 16:47:31 +0200
commit1d35a119c7a91786285adcede1e126c4aaf153b6 (patch)
tree7b5a249a2a01bc3f2833a417242d7c7c8a7cd04e
parent09a21ed0aca1b87c8991f7d270603057a71ff564 (diff)
downloadnixpkgs-1d35a119c7a91786285adcede1e126c4aaf153b6.tar
nixpkgs-1d35a119c7a91786285adcede1e126c4aaf153b6.tar.gz
nixpkgs-1d35a119c7a91786285adcede1e126c4aaf153b6.tar.bz2
nixpkgs-1d35a119c7a91786285adcede1e126c4aaf153b6.tar.lz
nixpkgs-1d35a119c7a91786285adcede1e126c4aaf153b6.tar.xz
nixpkgs-1d35a119c7a91786285adcede1e126c4aaf153b6.tar.zst
nixpkgs-1d35a119c7a91786285adcede1e126c4aaf153b6.zip
ocamlPackages.aches: init at 1.0.0
-rw-r--r--pkgs/development/ocaml-modules/aches/default.nix16
-rw-r--r--pkgs/development/ocaml-modules/aches/lwt.nix17
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
3 files changed, 35 insertions, 0 deletions
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 { };