megahit: fix build with cmake4

This commit is contained in:
Rafael Ieda
2025-10-22 12:36:44 -03:00
parent b5d4fb5c91
commit efecb81e39
+6
View File
@@ -34,6 +34,12 @@ stdenv.mkDerivation rec {
cmakeFlags = lib.optionals stdenv.hostPlatform.isStatic [
"-DSTATIC_BUILD=ON"
];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 2.8)" "cmake_minimum_required(VERSION 3.10)"
'';
meta = with lib; {
description = "Ultra-fast single-node solution for large and complex metagenomics assembly via succinct de Bruijn graph";
license = licenses.gpl3;