bullet: fix for CMake v4

This commit is contained in:
Guilhem Saurel
2025-09-26 08:42:53 +02:00
parent 0292f13177
commit c1f44d4e91
+9
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
libGLU,
libGL,
@@ -26,6 +27,14 @@ stdenv.mkDerivation rec {
libglut
];
patches = [
# fix for CMake v4, merged upstream
(fetchpatch {
url = "https://github.com/bulletphysics/bullet3/commit/d1a4256b3a019117f2bb6cb8c63d6367aaf512e2.patch";
hash = "sha256-FklMKYw5dKUcR5kZOkqv+KVLcWL/7r/0SAdYolmrn5A=";
})
];
postPatch = ''
substituteInPlace examples/ThirdPartyLibs/Gwen/CMakeLists.txt \
--replace "-DGLEW_STATIC" "-DGLEW_STATIC -Wno-narrowing"