summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/metrics
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2020-11-12 08:19:49 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2020-11-19 07:12:06 +0100
commit9785d7c7aa756dfc12f644993c8f728abf0e63ee (patch)
tree11f248979fcf733ac6f231b85b04d4fe9811c791 /pkgs/development/ocaml-modules/metrics
parentb99a5b810dd1032f0724e41038ceb8cae536e8eb (diff)
downloadnixpkgs-9785d7c7aa756dfc12f644993c8f728abf0e63ee.tar
nixpkgs-9785d7c7aa756dfc12f644993c8f728abf0e63ee.tar.gz
nixpkgs-9785d7c7aa756dfc12f644993c8f728abf0e63ee.tar.bz2
nixpkgs-9785d7c7aa756dfc12f644993c8f728abf0e63ee.tar.lz
nixpkgs-9785d7c7aa756dfc12f644993c8f728abf0e63ee.tar.xz
nixpkgs-9785d7c7aa756dfc12f644993c8f728abf0e63ee.tar.zst
nixpkgs-9785d7c7aa756dfc12f644993c8f728abf0e63ee.zip
ocamlPackages.metrics: 0.1.0 → 0.2.0
Diffstat (limited to 'pkgs/development/ocaml-modules/metrics')
-rw-r--r--pkgs/development/ocaml-modules/metrics/default.nix8
-rw-r--r--pkgs/development/ocaml-modules/metrics/lwt.nix6
-rw-r--r--pkgs/development/ocaml-modules/metrics/unix.nix6
3 files changed, 11 insertions, 9 deletions
diff --git a/pkgs/development/ocaml-modules/metrics/default.nix b/pkgs/development/ocaml-modules/metrics/default.nix
index 893b667f836..58fcab5313a 100644
--- a/pkgs/development/ocaml-modules/metrics/default.nix
+++ b/pkgs/development/ocaml-modules/metrics/default.nix
@@ -2,18 +2,20 @@
 
 buildDunePackage rec {
   pname = "metrics";
-  version = "0.1.0";
+  version = "0.2.0";
+
+  useDune2 = true;
 
   minimumOCamlVersion = "4.04";
 
   src = fetchurl {
     url = "https://github.com/mirage/metrics/releases/download/${version}/metrics-${version}.tbz";
-    sha256 = "0jy88anrx3rh19046rrbrjmx922zvz3wlqkk8asilqv9pbvpnp1a";
+    sha256 = "0j215cji3n78lghzi9m6kgr3r1s91v681hfnn7cgybb31d7gjkqg";
   };
 
   propagatedBuildInputs = [ fmt ];
 
-  checkInputs = lib.optional doCheck alcotest;
+  checkInputs = [ alcotest ];
 
   doCheck = true;
 
diff --git a/pkgs/development/ocaml-modules/metrics/lwt.nix b/pkgs/development/ocaml-modules/metrics/lwt.nix
index 47b91e430c6..7085ff58148 100644
--- a/pkgs/development/ocaml-modules/metrics/lwt.nix
+++ b/pkgs/development/ocaml-modules/metrics/lwt.nix
@@ -1,11 +1,11 @@
-{ buildDunePackage, ocaml_lwt, metrics }:
+{ buildDunePackage, logs, ocaml_lwt, metrics }:
 
 buildDunePackage {
   pname = "metrics-lwt";
 
-  inherit (metrics) version src;
+  inherit (metrics) version useDune2 src;
 
-  propagatedBuildInputs = [ ocaml_lwt metrics ];
+  propagatedBuildInputs = [ logs ocaml_lwt metrics ];
 
   meta = metrics.meta // {
     description = "Lwt backend for the Metrics library";
diff --git a/pkgs/development/ocaml-modules/metrics/unix.nix b/pkgs/development/ocaml-modules/metrics/unix.nix
index 45a92f10803..5a7bae1b29f 100644
--- a/pkgs/development/ocaml-modules/metrics/unix.nix
+++ b/pkgs/development/ocaml-modules/metrics/unix.nix
@@ -1,14 +1,14 @@
-{ lib, buildDunePackage, gnuplot, ocaml_lwt, metrics, metrics-lwt, mtime, uuidm }:
+{ buildDunePackage, gnuplot, ocaml_lwt, metrics, metrics-lwt, mtime, uuidm }:
 
 buildDunePackage rec {
 
   pname = "metrics-unix";
 
-  inherit (metrics) version src;
+  inherit (metrics) version useDune2 src;
 
   propagatedBuildInputs = [ gnuplot ocaml_lwt metrics mtime uuidm ];
 
-  checkInputs = lib.optional doCheck metrics-lwt;
+  checkInputs = [ metrics-lwt ];
 
   doCheck = true;