bullet: fix for CMake v4
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user