about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/metrics/unix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/metrics/unix.nix')
-rw-r--r--pkgs/development/ocaml-modules/metrics/unix.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/metrics/unix.nix b/pkgs/development/ocaml-modules/metrics/unix.nix
index 2d1333f74a108..e2dd095422e0b 100644
--- a/pkgs/development/ocaml-modules/metrics/unix.nix
+++ b/pkgs/development/ocaml-modules/metrics/unix.nix
@@ -6,6 +6,11 @@ buildDunePackage rec {
 
   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 ];