cmark-gfm: fix cmake 4 build errors

This commit is contained in:
Joshua Park
2025-10-07 12:56:43 -04:00
parent 4d04e06c7f
commit 41c53e61fa
+7
View File
@@ -15,6 +15,13 @@ stdenv.mkDerivation rec {
sha256 = "sha256-HiSGtRsSbW03R6aKoMVVFOLrwP5aXtpeXUC/bE5M/qo=";
};
# Fix the build with CMake 4.
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail \
"cmake_minimum_required(VERSION 3.0)" \
"cmake_minimum_required(VERSION 3.13)"
'';
nativeBuildInputs = [ cmake ];
doCheck = true;