megahit: fix build with cmake4 (#454580)

This commit is contained in:
Aleksana
2025-11-08 07:43:15 +00:00
committed by GitHub
+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;