git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.ringo: init at 0.5 (#130256)

ocamlPackages.ringo-lwt: init at 0.5

commit80bd1454bce550c50f7d7602e80a19bf7fca713a authorUlrik Strid <ulrik.strid@outlook.com> dateMon 19 Jul 2021, 09:27 (5 years ago) parent5ffeaf6
3 files changed+48
pkgs/development/ocaml-modules/ringo/default.nix+28 pkgs/development/ocaml-modules/ringo/lwt.nix+17 pkgs/top-level/ocaml-packages.nix+3
pkgs/development/ocaml-modules/ringo/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ lib, fetchFromGitLab, buildDunePackage }:
2+
3+buildDunePackage rec {
4+ pname = "ringo";
5+ version = "0.5";
6+
7+ src = fetchFromGitLab {
8+ owner = "nomadic-labs";
9+ repo = "ringo";
10+ rev = "v${version}";
11+ sha256 = "1zwha0ycv3rm3qnw7nkg2m08ibx39yxnx5fan4lnn82b0pdasjag";
12+ };
13+
14+ minimalOCamlVersion = "4.05";
15+
16+ useDune2 = true;
17+
18+ doCheck = true;
19+
20+ # If we just run the test as is it will try to test ringo-lwt
21+ checkPhase = "dune build @test/runtest";
22+
23+ meta = {
24+ description = "Caches (bounded-size key-value stores) and other bounded-size stores";
25+ license = lib.licenses.mit;
26+ maintainers = [ lib.maintainers.ulrikstrid ];
27+ };
28+}
pkgs/development/ocaml-modules/ringo/lwt.nixnew file+17
@@ -0,0 +1,17 @@
1+{ lib, buildDunePackage, ringo, lwt }:
2+
3+buildDunePackage {
4+ pname = "ringo-lwt";
5+ inherit (ringo) version src doCheck useDune2;
6+
7+ minimalOCamlVersion = "4.08";
8+
9+ propagatedBuildInputs = [
10+ ringo
11+ lwt
12+ ];
13+
14+ meta = ringo.meta // {
15+ description = "Lwt-wrappers for Ringo caches";
16+ };
17+}
pkgs/top-level/ocaml-packages.nix+3
@@ -1179,6 +1179,9 @@ let
11791179 resto-directory = callPackage ../development/ocaml-modules/resto/directory.nix { };
11801180 resto-json = callPackage ../development/ocaml-modules/resto/json.nix { };
11811181
1182+ ringo = callPackage ../development/ocaml-modules/ringo { };
1183+ ringo-lwt = callPackage ../development/ocaml-modules/ringo/lwt.nix { };
1184+
11821185 rope = callPackage ../development/ocaml-modules/rope { };
11831186
11841187 routes = callPackage ../development/ocaml-modules/routes { };