ocamlPackages.metrics: use Dune 3

This commit is contained in:
Vincent Laporte 2023-03-10 20:51:25 +01:00
parent 2ac2434fe0
commit 8971fdbc3c
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F
5 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,7 @@ buildDunePackage rec {
version = "0.4.0";
minimalOCamlVersion = "4.04";
duneVersion = "3";
src = fetchurl {
url = "https://github.com/mirage/metrics/releases/download/v${version}/metrics-${version}.tbz";

View File

@ -6,6 +6,8 @@ buildDunePackage rec {
pname = "metrics-influx";
inherit (metrics) version src;
duneVersion = "3";
propagatedBuildInputs = [ duration fmt lwt metrics ];
meta = metrics.meta // {

View File

@ -5,6 +5,8 @@ buildDunePackage {
inherit (metrics) version src;
duneVersion = "3";
propagatedBuildInputs = [ logs lwt metrics ];
meta = metrics.meta // {

View File

@ -7,6 +7,7 @@ buildDunePackage {
inherit (metrics) src version;
minimalOCamlVersion = "4.08";
duneVersion = "3";
propagatedBuildInputs = [ fmt logs metrics ];

View File

@ -6,6 +6,8 @@ buildDunePackage rec {
inherit (metrics) version src;
duneVersion = "3";
# Fixes https://github.com/mirage/metrics/issues/57
postPatch = ''
substituteInPlace src/unix/dune --replace "mtime mtime.clock" "mtime"