From 543e633c8fa043bb634d4b549b65300dfd772d38 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 11 Jan 2024 07:00:12 +0100 Subject: [PATCH] =?UTF-8?q?ocamlPackages.metrics:=200.4.0=20=E2=86=92=200.?= =?UTF-8?q?4.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/metrics/default.nix | 5 ++--- pkgs/development/ocaml-modules/metrics/unix.nix | 7 ------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/pkgs/development/ocaml-modules/metrics/default.nix b/pkgs/development/ocaml-modules/metrics/default.nix index c82e77adb515..9a0de6212f20 100644 --- a/pkgs/development/ocaml-modules/metrics/default.nix +++ b/pkgs/development/ocaml-modules/metrics/default.nix @@ -2,14 +2,13 @@ buildDunePackage rec { pname = "metrics"; - version = "0.4.0"; + version = "0.4.1"; minimalOCamlVersion = "4.04"; - duneVersion = "3"; src = fetchurl { url = "https://github.com/mirage/metrics/releases/download/v${version}/metrics-${version}.tbz"; - sha256 = "sha256-kbh1WktQkDcXE8O1WRm+vtagVfSql8S5gr0bXn/jia8="; + sha256 = "sha256-d+DCD7XB0GED27DsC8YEW+48YcAK0EI8l4Uqx/PGFE0="; }; propagatedBuildInputs = [ fmt ]; diff --git a/pkgs/development/ocaml-modules/metrics/unix.nix b/pkgs/development/ocaml-modules/metrics/unix.nix index 3816dfa8ffb7..0c3a1465c2b1 100644 --- a/pkgs/development/ocaml-modules/metrics/unix.nix +++ b/pkgs/development/ocaml-modules/metrics/unix.nix @@ -6,13 +6,6 @@ buildDunePackage rec { 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 ];