libsForQt5.maplibre-native-qt: fix build with gcc15

This commit is contained in:
Xiangyan Sun
2026-04-17 01:04:34 -07:00
parent f97e195236
commit d28c93eaa5
@@ -1,6 +1,7 @@
{
cmake,
fetchFromGitHub,
fetchpatch,
lib,
qtlocation,
stdenv,
@@ -18,6 +19,16 @@ stdenv.mkDerivation (finalAttrs: {
fetchSubmodules = true;
};
patches = [
# fix build with gcc15
(fetchpatch {
url = "https://github.com/maplibre/maplibre-native/commit/dde3fdd398a5f7b49300b1a761057bdd3286ae24.patch";
hash = "sha256-UQ4Y2aoBsHQHEqlrwn4OUzICeT3MNVZlHFK/KphvV/c=";
stripLen = 1;
extraPrefix = "vendor/maplibre-native/";
})
];
postPatch = lib.optionals (lib.versionAtLeast qtlocation.version "6.10") ''
# fix build with Qt 6.10
# included in https://github.com/maplibre/maplibre-native-qt/pull/216