From 8ca02f1a5be82c51a673b47671b31c2ceb5ba65a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marijan=20Petri=C4=8Devi=C4=87?= Date: Tue, 9 Dec 2025 11:29:43 +0700 Subject: [PATCH] ocamlPackages.prometheus-app: init at 1.3 --- .../ocaml-modules/prometheus/app.nix | 47 +++++++++++++++++++ .../ocaml-modules/prometheus/default.nix | 1 - pkgs/top-level/ocaml-packages.nix | 2 + 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/ocaml-modules/prometheus/app.nix diff --git a/pkgs/development/ocaml-modules/prometheus/app.nix b/pkgs/development/ocaml-modules/prometheus/app.nix new file mode 100644 index 000000000000..4e21e1972e80 --- /dev/null +++ b/pkgs/development/ocaml-modules/prometheus/app.nix @@ -0,0 +1,47 @@ +{ + buildDunePackage, + prometheus, + asetmap, + astring, + cohttp-lwt, + cohttp-lwt-unix, + cmdliner, + fmt, + logs, + lwt, + re, + alcotest, + alcotest-lwt, +}: + +buildDunePackage { + pname = "prometheus-app"; + inherit (prometheus) + version + src + ; + + propagatedBuildInputs = [ + asetmap + astring + cmdliner + cohttp-lwt + cohttp-lwt-unix + fmt + logs + lwt + prometheus + re + ]; + + doCheck = true; + + checkInputs = [ + alcotest + alcotest-lwt + ]; + + meta = prometheus.meta // { + description = "A web-server reporting prometheus metrics."; + }; +} diff --git a/pkgs/development/ocaml-modules/prometheus/default.nix b/pkgs/development/ocaml-modules/prometheus/default.nix index bee4f05b8d0d..93ebde2a443f 100644 --- a/pkgs/development/ocaml-modules/prometheus/default.nix +++ b/pkgs/development/ocaml-modules/prometheus/default.nix @@ -6,7 +6,6 @@ asetmap, re, lwt, - alcotest, }: buildDunePackage (finalAttrs: { diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index f109780364a2..860ee78c116a 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1767,6 +1767,8 @@ let prometheus = callPackage ../development/ocaml-modules/prometheus { }; + prometheus-app = callPackage ../development/ocaml-modules/prometheus/app.nix { }; + progress = callPackage ../development/ocaml-modules/progress { }; promise_jsoo = callPackage ../development/ocaml-modules/promise_jsoo { };