From 9460430127f5b432f833a859031996be43016a93 Mon Sep 17 00:00:00 2001 From: Laurent Canis Date: Fri, 28 Apr 2023 11:00:12 -0400 Subject: [PATCH] ocamlPackages.prometheus: init at 1.2 --- .../ocaml-modules/prometheus/default.nix | 28 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/ocaml-modules/prometheus/default.nix diff --git a/pkgs/development/ocaml-modules/prometheus/default.nix b/pkgs/development/ocaml-modules/prometheus/default.nix new file mode 100644 index 00000000000..2715c50b3ed --- /dev/null +++ b/pkgs/development/ocaml-modules/prometheus/default.nix @@ -0,0 +1,28 @@ +{ lib, fetchurl, buildDunePackage, astring, asetmap, fmt, re, lwt, alcotest }: + +buildDunePackage rec { + pname = "prometheus"; + version = "1.2"; + + src = fetchurl { + url = "https://github.com/mirage/prometheus/releases/download/v${version}/prometheus-${version}.tbz"; + sha256 = "sha256-g2Q6ApprbecdFANO7i6U/v8dCHVcSkHVg9wVMKtVW8s="; + }; + + duneVersion = "3"; + + propagatedBuildInputs = [ + astring + asetmap + fmt + re + lwt + alcotest + ]; + + meta = { + description = "Client library for Prometheus monitoring"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.ulrikstrid ]; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 1549097e37b..28651652e15 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1388,6 +1388,8 @@ let process = callPackage ../development/ocaml-modules/process { }; + prometheus = callPackage ../development/ocaml-modules/prometheus { }; + progress = callPackage ../development/ocaml-modules/progress { }; promise_jsoo = callPackage ../development/ocaml-modules/promise_jsoo { };