mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
28 lines
577 B
Nix
28 lines
577 B
Nix
{ buildDunePackage, gnuplot, lwt, metrics, metrics-lwt, mtime, uuidm }:
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "metrics-unix";
|
|
|
|
inherit (metrics) version src;
|
|
|
|
duneVersion = "3";
|
|
|
|
# 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";
|
|
};
|
|
|
|
}
|