mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-12 07:54:50 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
25 lines
526 B
Nix
25 lines
526 B
Nix
{ 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 ];
|
|
|
|
nativeCheckInputs = [ metrics-lwt ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = metrics.meta // {
|
|
description = "Unix backend for the Metrics library";
|
|
};
|
|
|
|
}
|