summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/mirage-logs/default.nix
blob: 57639e61301b5b6dfccb05ed4872cf3101a568a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  lib,
  fetchurl,
  buildDunePackage,
  logs,
  fmt,
  ptime,
  mirage-ptime,
  cmdliner,
  alcotest,
}:

buildDunePackage (finalAttrs: {
  pname = "mirage-logs";
  version = "3.0.0";

  src = fetchurl {
    url = "https://github.com/mirage/mirage-logs/releases/download/v${finalAttrs.version}/mirage-logs-${finalAttrs.version}.tbz";
    hash = "sha256-ptt9/Dr9h+W3j/9SAHpWvKZnIgeuBn5oxj72kxiSZ1A=";
  };

  propagatedBuildInputs = [
    logs
    fmt
    ptime
    mirage-ptime
    cmdliner
  ];

  doCheck = true;
  checkInputs = [ alcotest ];

  meta = {
    description = "Mirage reporter for the Logs library";
    homepage = "https://github.com/mirage/mirage-logs";
    changelog = "https://raw.githubusercontent.com/mirage/mirage-logs/v${finalAttrs.version}/CHANGES.md";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [
      stepbrobd
      vbgl
    ];
    teams = [ lib.teams.ngi ];
  };
})