ocamlPackages.mirage-logs: init at 1.2.0

This commit is contained in:
Vincent Laporte 2020-11-06 08:22:06 +01:00 committed by ehmry
parent 75b59386b4
commit bcd196ca69
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ lib, fetchurl, buildDunePackage
, logs, lwt, mirage-clock, mirage-profile, ptime
, alcotest
}:
buildDunePackage rec {
pname = "mirage-logs";
version = "1.2.0";
useDune2 = true;
src = fetchurl {
url = "https://github.com/mirage/mirage-logs/releases/download/v${version}/mirage-logs-v${version}.tbz";
sha256 = "0h0amzjxy067jljscib7fvw5q8k0adqa8m86affha9hq5jsh07a1";
};
propagatedBuildInputs = [ logs lwt mirage-clock mirage-profile ptime ];
doCheck = true;
checkInputs = [ alcotest ];
meta = {
description = "A reporter for the Logs library that writes log messages to stderr, using a Mirage `CLOCK` to add timestamps";
homepage = "https://github.com/mirage/mirage-logs";
license = lib.licenses.isc;
maintainers = [ lib.maintainers.vbgl ];
};
}

View file

@ -571,6 +571,8 @@ let
mirage-kv = callPackage ../development/ocaml-modules/mirage-kv { };
mirage-logs = callPackage ../development/ocaml-modules/mirage-logs { };
mirage-net = callPackage ../development/ocaml-modules/mirage-net { };
mirage-profile = callPackage ../development/ocaml-modules/mirage-profile { };