2019-11-27 18:34:09 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, alcotest, fmt }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "metrics";
|
2024-01-11 06:00:12 +00:00
|
|
|
version = "0.4.1";
|
2020-11-12 07:19:49 +00:00
|
|
|
|
2022-07-17 12:33:14 +00:00
|
|
|
minimalOCamlVersion = "4.04";
|
2019-11-27 18:34:09 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-07-17 12:33:14 +00:00
|
|
|
url = "https://github.com/mirage/metrics/releases/download/v${version}/metrics-${version}.tbz";
|
2024-01-11 06:00:12 +00:00
|
|
|
sha256 = "sha256-d+DCD7XB0GED27DsC8YEW+48YcAK0EI8l4Uqx/PGFE0=";
|
2019-11-27 18:34:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ fmt ];
|
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2019-11-27 18:34:09 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Metrics infrastructure for OCaml";
|
|
|
|
homepage = "https://github.com/mirage/metrics";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|