assimp: fix build with gcc15 (#446108)

This commit is contained in:
Aleksana
2025-09-29 11:40:49 +08:00
committed by GitHub
+11
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
zlib,
nix-update-script,
@@ -23,6 +24,16 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-ixtqK+3iiL17GEbEVHz5S6+gJDDQP7bVuSfRMJMGEOY=";
};
patches = [
# Fix build with gcc15
# https://github.com/assimp/assimp/pull/6283
(fetchpatch {
name = "assimp-fix-invalid-vector-gcc15.patch";
url = "https://github.com/assimp/assimp/commit/59bc03d931270b6354690512d0c881eec8b97678.patch";
hash = "sha256-O+JPwcOdyFtmFE7eZojHo1DUavF5EhLYlUyxtYo/KF4=";
})
];
nativeBuildInputs = [ cmake ];
buildInputs = [