2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, alcotest, fmt }:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "metrics";
|
2020-11-21 19:51:51 +00:00
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.04";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/metrics/releases/download/${version}/metrics-${version}.tbz";
|
2020-11-21 19:51:51 +00:00
|
|
|
sha256 = "0j215cji3n78lghzi9m6kgr3r1s91v681hfnn7cgybb31d7gjkqg";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ fmt ];
|
|
|
|
|
2020-11-21 19:51:51 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Metrics infrastructure for OCaml";
|
|
|
|
homepage = "https://github.com/mirage/metrics";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|