about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorUlrik Strid <ulrik.strid@outlook.com>2021-07-19 09:27:53 +0200
committerGitHub <noreply@github.com>2021-07-19 09:27:53 +0200
commit80bd1454bce550c50f7d7602e80a19bf7fca713a (patch)
tree065378588fe62c1796a121d4187cffeb75a69090 /pkgs/development/ocaml-modules
parent5ffeaf652af106fa89de1758ea46a7501071c275 (diff)
downloadnixlib-80bd1454bce550c50f7d7602e80a19bf7fca713a.tar
nixlib-80bd1454bce550c50f7d7602e80a19bf7fca713a.tar.gz
nixlib-80bd1454bce550c50f7d7602e80a19bf7fca713a.tar.bz2
nixlib-80bd1454bce550c50f7d7602e80a19bf7fca713a.tar.lz
nixlib-80bd1454bce550c50f7d7602e80a19bf7fca713a.tar.xz
nixlib-80bd1454bce550c50f7d7602e80a19bf7fca713a.tar.zst
nixlib-80bd1454bce550c50f7d7602e80a19bf7fca713a.zip
ocamlPackages.ringo: init at 0.5 (#130256)
ocamlPackages.ringo-lwt: init at 0.5
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/ringo/default.nix28
-rw-r--r--pkgs/development/ocaml-modules/ringo/lwt.nix17
2 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ringo/default.nix b/pkgs/development/ocaml-modules/ringo/default.nix
new file mode 100644
index 000000000000..7bfd38b869da
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ringo/default.nix
@@ -0,0 +1,28 @@
+{ lib, fetchFromGitLab, buildDunePackage }:
+
+buildDunePackage rec {
+  pname = "ringo";
+  version = "0.5";
+
+  src = fetchFromGitLab {
+    owner = "nomadic-labs";
+    repo = "ringo";
+    rev = "v${version}";
+    sha256 = "1zwha0ycv3rm3qnw7nkg2m08ibx39yxnx5fan4lnn82b0pdasjag";
+  };
+
+  minimalOCamlVersion = "4.05";
+
+  useDune2 = true;
+
+  doCheck = true;
+
+  # If we just run the test as is it will try to test ringo-lwt
+  checkPhase = "dune build @test/runtest";
+
+  meta = {
+    description = "Caches (bounded-size key-value stores) and other bounded-size stores";
+    license = lib.licenses.mit;
+    maintainers = [ lib.maintainers.ulrikstrid ];
+  };
+}
diff --git a/pkgs/development/ocaml-modules/ringo/lwt.nix b/pkgs/development/ocaml-modules/ringo/lwt.nix
new file mode 100644
index 000000000000..be9f5bbf2b22
--- /dev/null
+++ b/pkgs/development/ocaml-modules/ringo/lwt.nix
@@ -0,0 +1,17 @@
+{ lib, buildDunePackage, ringo, lwt }:
+
+buildDunePackage {
+  pname = "ringo-lwt";
+  inherit (ringo) version src doCheck useDune2;
+
+  minimalOCamlVersion = "4.08";
+
+  propagatedBuildInputs = [
+    ringo
+    lwt
+  ];
+
+  meta = ringo.meta // {
+    description = "Lwt-wrappers for Ringo caches";
+  };
+}