Unverified Commit f28521a0 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

libsForQt5.maplibre-native-qt: fix build with gcc15 (#508915)

parents eb960884 d28c93ea
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
{
  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