depot/third_party/nixpkgs/pkgs/development/ocaml-modules/mirage-logs/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

28 lines
760 B
Nix

{ lib, fetchurl, buildDunePackage
, logs, lwt, mirage-clock, ptime
, alcotest
}:
buildDunePackage rec {
pname = "mirage-logs";
version = "1.3.0";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/mirage/mirage-logs/releases/download/v${version}/mirage-logs-${version}.tbz";
hash = "sha256-c1YQIutqp58TRz+a9Vd/69FCv0jnGRvFnei9BtSbOxA=";
};
propagatedBuildInputs = [ logs lwt mirage-clock ptime ];
doCheck = true;
checkInputs = [ 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 ];
};
}