From 3a490f17c0eaa43f89dc04d41dfdecf62155ab39 Mon Sep 17 00:00:00 2001 From: Rafael Ieda Date: Wed, 22 Oct 2025 19:14:20 -0300 Subject: [PATCH] mpifileutils: fix build with cmake4 --- pkgs/by-name/mp/mpifileutils/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/mp/mpifileutils/package.nix b/pkgs/by-name/mp/mpifileutils/package.nix index 6011e6d26d3b..ddb67dd5d5d0 100644 --- a/pkgs/by-name/mp/mpifileutils/package.nix +++ b/pkgs/by-name/mp/mpifileutils/package.nix @@ -45,6 +45,11 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ mpi ]; + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail "CMAKE_MINIMUM_REQUIRED(VERSION 3.1)" "cmake_minimum_required(VERSION 3.10)" + ''; + meta = with lib; { description = "Suite of MPI-based tools to manage large datasets"; homepage = "https://hpc.github.io/mpifileutils";