2022-08-12 12:06:08 +00:00
|
|
|
{ buildDunePackage, gnuplot, lwt, metrics, metrics-lwt, mtime, uuidm }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
|
|
|
|
pname = "metrics-unix";
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
inherit (metrics) version src;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
duneVersion = "3";
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
# Fixes https://github.com/mirage/metrics/issues/57
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/unix/dune --replace "mtime mtime.clock" "mtime"
|
|
|
|
'';
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
propagatedBuildInputs = [ gnuplot lwt metrics mtime uuidm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
nativeCheckInputs = [ gnuplot ];
|
|
|
|
checkInputs = [ metrics-lwt ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = metrics.meta // {
|
|
|
|
description = "Unix backend for the Metrics library";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|