From 8f0accd00f18b183afcdefb4f304090bd27b8329 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 17 Oct 2020 07:35:38 +0200 Subject: [PATCH] ocamlPackages.mirage-kv: init at 3.0.1 --- .../ocaml-modules/mirage-kv/default.nix | 28 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/ocaml-modules/mirage-kv/default.nix diff --git a/pkgs/development/ocaml-modules/mirage-kv/default.nix b/pkgs/development/ocaml-modules/mirage-kv/default.nix new file mode 100644 index 000000000000..20d83e166418 --- /dev/null +++ b/pkgs/development/ocaml-modules/mirage-kv/default.nix @@ -0,0 +1,28 @@ +{ lib, fetchurl, buildDunePackage +, fmt, mirage-device +, alcotest +}: + +buildDunePackage rec { + pname = "mirage-kv"; + version = "3.0.1"; + + useDune2 = true; + + src = fetchurl { + url = "https://github.com/mirage/mirage-kv/releases/download/v${version}/mirage-kv-v${version}.tbz"; + sha256 = "1n736sjvdd8rkbc2b5jm9sn0w6hvhjycma5328r0l03v24vk5cki"; + }; + + propagatedBuildInputs = [ fmt mirage-device ]; + + doCheck = true; + checkInputs = [ alcotest ]; + + meta = { + description = "MirageOS signatures for key/value devices"; + homepage = "https://github.com/mirage/mirage-kv"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vbgl ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 4cc8b4538998..0dd35d38342a 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -559,6 +559,8 @@ let mirage-flow-unix = callPackage ../development/ocaml-modules/mirage-flow/unix.nix { }; + mirage-kv = callPackage ../development/ocaml-modules/mirage-kv { }; + mirage-protocols = callPackage ../development/ocaml-modules/mirage-protocols { }; mirage-random = callPackage ../development/ocaml-modules/mirage-random { };