Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchurl, buildDunePackage
2, logs, lwt, mirage-clock, ptime
3, alcotest
4}:
5
6buildDunePackage rec {
7 pname = "mirage-logs";
8 version = "1.3.0";
9
10 duneVersion = "3";
11
12 src = fetchurl {
13 url = "https://github.com/mirage/mirage-logs/releases/download/v${version}/mirage-logs-${version}.tbz";
14 hash = "sha256-c1YQIutqp58TRz+a9Vd/69FCv0jnGRvFnei9BtSbOxA=";
15 };
16
17 propagatedBuildInputs = [ logs lwt mirage-clock ptime ];
18
19 doCheck = true;
20 checkInputs = [ alcotest ];
21
22 meta = {
23 description = "A reporter for the Logs library that writes log messages to stderr, using a Mirage `CLOCK` to add timestamps";
24 homepage = "https://github.com/mirage/mirage-logs";
25 license = lib.licenses.isc;
26 maintainers = [ lib.maintainers.vbgl ];
27 };
28}