2020-11-06 00:33:48 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2023-03-24 00:07:29 +00:00
|
|
|
, logs, lwt, mirage-clock, ptime
|
|
|
|
, alcotest
|
2020-11-06 00:33:48 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "mirage-logs";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "1.3.0";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
duneVersion = "3";
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-03-24 00:07:29 +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 00:33:48 +00:00
|
|
|
};
|
|
|
|
|
2023-03-24 00:07:29 +00:00
|
|
|
propagatedBuildInputs = [ logs lwt mirage-clock ptime ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|