ocamlPackages.ringo: init at 0.5 (#130256)
ocamlPackages.ringo-lwt: init at 0.5
This commit is contained in:
parent
5ffeaf652a
commit
80bd1454bc
28
pkgs/development/ocaml-modules/ringo/default.nix
Normal file
28
pkgs/development/ocaml-modules/ringo/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
17
pkgs/development/ocaml-modules/ringo/lwt.nix
Normal file
17
pkgs/development/ocaml-modules/ringo/lwt.nix
Normal file
@ -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";
|
||||
};
|
||||
}
|
@ -1179,6 +1179,9 @@ let
|
||||
resto-directory = callPackage ../development/ocaml-modules/resto/directory.nix { };
|
||||
resto-json = callPackage ../development/ocaml-modules/resto/json.nix { };
|
||||
|
||||
ringo = callPackage ../development/ocaml-modules/ringo { };
|
||||
ringo-lwt = callPackage ../development/ocaml-modules/ringo/lwt.nix { };
|
||||
|
||||
rope = callPackage ../development/ocaml-modules/rope { };
|
||||
|
||||
routes = callPackage ../development/ocaml-modules/routes { };
|
||||
|
Loading…
Reference in New Issue
Block a user