about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/metrics/unix.nix
blob: e2dd095422e0b22244e6979be8920a54d84957bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ buildDunePackage, gnuplot, lwt, metrics, metrics-lwt, mtime, uuidm }:

buildDunePackage rec {

  pname = "metrics-unix";

  inherit (metrics) version src;

  # Fixes https://github.com/mirage/metrics/issues/57
  postPatch = ''
    substituteInPlace src/unix/dune --replace "mtime mtime.clock" "mtime"
  '';

  propagatedBuildInputs = [ gnuplot lwt metrics mtime uuidm ];

  checkInputs = [ metrics-lwt ];

  doCheck = true;

  meta = metrics.meta // {
    description = "Unix backend for the Metrics library";
  };

}