summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/metrics/default.nix
blob: 893b667f8364ff5082ac9a5ed0a47ff2df122de9 (plain) (blame)
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
{ lib, fetchurl, buildDunePackage, alcotest, fmt }:

buildDunePackage rec {
  pname = "metrics";
  version = "0.1.0";

  minimumOCamlVersion = "4.04";

  src = fetchurl {
    url = "https://github.com/mirage/metrics/releases/download/${version}/metrics-${version}.tbz";
    sha256 = "0jy88anrx3rh19046rrbrjmx922zvz3wlqkk8asilqv9pbvpnp1a";
  };

  propagatedBuildInputs = [ fmt ];

  checkInputs = lib.optional doCheck alcotest;

  doCheck = true;

  meta = {
    description = "Metrics infrastructure for OCaml";
    homepage = "https://github.com/mirage/metrics";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.vbgl ];
  };

}