2022-07-17 12:33:14 +00:00
|
|
|
{ buildDunePackage, gnuplot, lwt, metrics, metrics-lwt, mtime, uuidm }:
|
2019-11-27 18:34:18 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
|
|
|
|
pname = "metrics-unix";
|
|
|
|
|
2022-07-17 12:33:14 +00:00
|
|
|
inherit (metrics) version src;
|
2019-11-27 18:34:18 +00:00
|
|
|
|
2023-03-10 19:51:25 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
|
2022-11-18 06:38:21 +00:00
|
|
|
# Fixes https://github.com/mirage/metrics/issues/57
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/unix/dune --replace "mtime mtime.clock" "mtime"
|
|
|
|
'';
|
|
|
|
|
2022-07-17 12:33:14 +00:00
|
|
|
propagatedBuildInputs = [ gnuplot lwt metrics mtime uuidm ];
|
2019-11-27 18:34:18 +00:00
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
nativeCheckInputs = [ gnuplot ];
|
|
|
|
checkInputs = [ metrics-lwt ];
|
2019-11-27 18:34:18 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = metrics.meta // {
|
|
|
|
description = "Unix backend for the Metrics library";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|