2020-11-06 00:33:48 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, logs, lwt, mirage-clock, mirage-profile, ptime
|
2022-03-30 09:31:56 +00:00
|
|
|
, alcotest, stdlib-shims
|
2020-11-06 00:33:48 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
propagatedBuildInputs = [ logs lwt mirage-clock mirage-profile ptime stdlib-shims ];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|