ocamlPackages.metrics: use Dune 3
This commit is contained in:
parent
2ac2434fe0
commit
8971fdbc3c
|
@ -5,6 +5,7 @@ buildDunePackage rec {
|
||||||
version = "0.4.0";
|
version = "0.4.0";
|
||||||
|
|
||||||
minimalOCamlVersion = "4.04";
|
minimalOCamlVersion = "4.04";
|
||||||
|
duneVersion = "3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/mirage/metrics/releases/download/v${version}/metrics-${version}.tbz";
|
url = "https://github.com/mirage/metrics/releases/download/v${version}/metrics-${version}.tbz";
|
||||||
|
|
|
@ -6,6 +6,8 @@ buildDunePackage rec {
|
||||||
pname = "metrics-influx";
|
pname = "metrics-influx";
|
||||||
inherit (metrics) version src;
|
inherit (metrics) version src;
|
||||||
|
|
||||||
|
duneVersion = "3";
|
||||||
|
|
||||||
propagatedBuildInputs = [ duration fmt lwt metrics ];
|
propagatedBuildInputs = [ duration fmt lwt metrics ];
|
||||||
|
|
||||||
meta = metrics.meta // {
|
meta = metrics.meta // {
|
||||||
|
|
|
@ -5,6 +5,8 @@ buildDunePackage {
|
||||||
|
|
||||||
inherit (metrics) version src;
|
inherit (metrics) version src;
|
||||||
|
|
||||||
|
duneVersion = "3";
|
||||||
|
|
||||||
propagatedBuildInputs = [ logs lwt metrics ];
|
propagatedBuildInputs = [ logs lwt metrics ];
|
||||||
|
|
||||||
meta = metrics.meta // {
|
meta = metrics.meta // {
|
||||||
|
|
|
@ -7,6 +7,7 @@ buildDunePackage {
|
||||||
inherit (metrics) src version;
|
inherit (metrics) src version;
|
||||||
|
|
||||||
minimalOCamlVersion = "4.08";
|
minimalOCamlVersion = "4.08";
|
||||||
|
duneVersion = "3";
|
||||||
|
|
||||||
propagatedBuildInputs = [ fmt logs metrics ];
|
propagatedBuildInputs = [ fmt logs metrics ];
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,8 @@ buildDunePackage rec {
|
||||||
|
|
||||||
inherit (metrics) version src;
|
inherit (metrics) version src;
|
||||||
|
|
||||||
|
duneVersion = "3";
|
||||||
|
|
||||||
# Fixes https://github.com/mirage/metrics/issues/57
|
# Fixes https://github.com/mirage/metrics/issues/57
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/unix/dune --replace "mtime mtime.clock" "mtime"
|
substituteInPlace src/unix/dune --replace "mtime mtime.clock" "mtime"
|
||||||
|
|
Loading…
Reference in a new issue