diff --git a/pkgs/development/libraries/maplibre-native-qt/default.nix b/pkgs/development/libraries/maplibre-native-qt/default.nix index 3784356e6a2a..76f30c3acc21 100644 --- a/pkgs/development/libraries/maplibre-native-qt/default.nix +++ b/pkgs/development/libraries/maplibre-native-qt/default.nix @@ -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