Merge pull request #287884 from trofi/reactphysics3d-gcc-13-fix

reactphysics3d: fix `gcc-13` build failure
This commit is contained in:
maxine 2024-02-11 12:09:42 +01:00 committed by GitHub
commit 48dad0afc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake }:
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }:
stdenv.mkDerivation (finalAttrs: {
pname = "reactphysics3d";
@ -11,6 +11,16 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-AUdsUXsygsGfS8H+AHEV1fSrrX7zGmfsaTONYUG3zqk=";
};
patches = [
# Fix gcc-13 build failure:
# https://github.com/DanielChappuis/reactphysics3d/pull/371
(fetchpatch {
name ="gcc-13.patch";
url = "https://github.com/DanielChappuis/reactphysics3d/commit/9335856664fdc3bd1073209f0b4f6eae24c35848.patch";
hash = "sha256-pCiAHfv66tbE8+hpVvjS22jLi7I+pPofSy8w7eWEp9o=";
})
];
nativeBuildInputs = [ cmake ];
meta = with lib; {