1{
2 lib,
3 fetchurl,
4 buildDunePackage,
5 astring,
6 asetmap,
7 fmt,
8 re,
9 lwt,
10 alcotest,
11}:
12
13buildDunePackage rec {
14 pname = "prometheus";
15 version = "1.2";
16
17 src = fetchurl {
18 url = "https://github.com/mirage/prometheus/releases/download/v${version}/prometheus-${version}.tbz";
19 sha256 = "sha256-g2Q6ApprbecdFANO7i6U/v8dCHVcSkHVg9wVMKtVW8s=";
20 };
21
22 duneVersion = "3";
23
24 propagatedBuildInputs = [
25 astring
26 asetmap
27 fmt
28 re
29 lwt
30 alcotest
31 ];
32
33 meta = {
34 description = "Client library for Prometheus monitoring";
35 license = lib.licenses.asl20;
36 maintainers = [ lib.maintainers.ulrikstrid ];
37 };
38}