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";