Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
28 lines
788 B
Nix
28 lines
788 B
Nix
{ lib, fetchurl, buildDunePackage
|
|
, logs, fmt, ptime, mirage-clock, cmdliner
|
|
, lwt, alcotest
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "mirage-logs";
|
|
version = "2.1.0";
|
|
|
|
duneVersion = "3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/mirage-logs/releases/download/v${version}/mirage-logs-${version}.tbz";
|
|
hash = "sha256-rorCsgw7QCQmjotr465KShQGWdoUM88djpwgqwBGnLs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ logs fmt ptime mirage-clock cmdliner ];
|
|
|
|
doCheck = true;
|
|
checkInputs = [ lwt alcotest ];
|
|
|
|
meta = {
|
|
description = "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 ];
|
|
};
|
|
}
|