about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-11-13 11:52:57 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2020-11-19 07:12:06 +0100
commit7346475c9ffa605e354f487426ecce196018af85 (patch)
tree5f5d59dd5fcef04dd1fec287fd67cfcba7204e68
parent9785d7c7aa756dfc12f644993c8f728abf0e63ee (diff)
ocamlPackages.metrics-influx: init at 0.2.0
-rw-r--r--pkgs/development/ocaml-modules/metrics/influx.nix14
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/metrics/influx.nix b/pkgs/development/ocaml-modules/metrics/influx.nix
new file mode 100644
index 0000000000000..8394ec0c0f949
--- /dev/null
+++ b/pkgs/development/ocaml-modules/metrics/influx.nix
@@ -0,0 +1,14 @@
+{ buildDunePackage, metrics
+, astring, duration, fmt, lwt
+}:
+
+buildDunePackage rec {
+  pname = "metrics-influx";
+  inherit (metrics) version useDune2 src;
+
+  propagatedBuildInputs = [ astring duration fmt lwt metrics ];
+
+  meta = metrics.meta // {
+    description = "Influx reporter for the Metrics library";
+  };
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index 9cc95dd4f56be..8a50c1c870d4e 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -531,6 +531,8 @@ let
 
     metrics = callPackage ../development/ocaml-modules/metrics { };
 
+    metrics-influx = callPackage ../development/ocaml-modules/metrics/influx.nix { };
+
     metrics-lwt = callPackage ../development/ocaml-modules/metrics/lwt.nix { };
 
     metrics-unix = callPackage ../development/ocaml-modules/metrics/unix.nix {