nixpkgs/pkgs/development/ocaml-modules/metrics/unix.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
577 B
Nix
Raw Normal View History

{ buildDunePackage, gnuplot, lwt, metrics, metrics-lwt, mtime, uuidm }:
buildDunePackage rec {
pname = "metrics-unix";
inherit (metrics) version src;
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"
'';
propagatedBuildInputs = [ gnuplot lwt metrics mtime uuidm ];
nativeCheckInputs = [ gnuplot ];
checkInputs = [ metrics-lwt ];
doCheck = true;
meta = metrics.meta // {
description = "Unix backend for the Metrics library";
};
}