2020-11-06 07:22:06 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2023-03-23 16:18:05 +00:00
|
|
|
, logs, lwt, mirage-clock, ptime
|
|
|
|
, alcotest
|
2020-11-06 07:22:06 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "mirage-logs";
|
2023-03-23 16:18:05 +00:00
|
|
|
version = "1.3.0";
|
2020-11-06 07:22:06 +00:00
|
|
|
|
2023-03-23 16:18:05 +00:00
|
|
|
duneVersion = "3";
|
2020-11-06 07:22:06 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-03-23 16:18:05 +00:00
|
|
|
url = "https://github.com/mirage/mirage-logs/releases/download/v${version}/mirage-logs-${version}.tbz";
|
|
|
|
hash = "sha256-c1YQIutqp58TRz+a9Vd/69FCv0jnGRvFnei9BtSbOxA=";
|
2020-11-06 07:22:06 +00:00
|
|
|
};
|
|
|
|
|
2023-03-23 16:18:05 +00:00
|
|
|
propagatedBuildInputs = [ logs lwt mirage-clock ptime ];
|
2020-11-06 07:22:06 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2020-11-06 07:22:06 +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 ];
|
|
|
|
};
|
|
|
|
}
|