2020-11-06 00:33:48 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2024-07-27 06:49:29 +00:00
|
|
|
, logs, fmt, ptime, mirage-clock, cmdliner
|
|
|
|
, lwt, alcotest
|
2020-11-06 00:33:48 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "mirage-logs";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.1.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";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-rorCsgw7QCQmjotr465KShQGWdoUM88djpwgqwBGnLs=";
|
2020-11-06 00:33:48 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
propagatedBuildInputs = [ logs fmt ptime mirage-clock cmdliner ];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2024-07-27 06:49:29 +00:00
|
|
|
checkInputs = [ lwt alcotest ];
|
2020-11-06 00:33:48 +00:00
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Reporter for the Logs library that writes log messages to stderr, using a Mirage `CLOCK` to add timestamps";
|
2020-11-06 00:33:48 +00:00
|
|
|
homepage = "https://github.com/mirage/mirage-logs";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
}
|