diff --git a/pkgs/development/libraries/maplibre-native-qt/default.nix b/pkgs/development/libraries/maplibre-native-qt/default.nix index 59c5eb12e71d..bf5379e1ba74 100644 --- a/pkgs/development/libraries/maplibre-native-qt/default.nix +++ b/pkgs/development/libraries/maplibre-native-qt/default.nix @@ -41,9 +41,15 @@ stdenv.mkDerivation (finalAttrs: { cmake ]; - env.CXXFLAGS = toString [ - "-DQT_NO_USE_NODISCARD_FILE_OPEN" - ]; + env.CXXFLAGS = toString ( + [ + "-DQT_NO_USE_NODISCARD_FILE_OPEN" + ] + # vendored maplibre-native builds with -Werror and trips GCC 16's -Wsfinae-incomplete + ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "16") [ + "-Wno-error=sfinae-incomplete" + ] + ); buildInputs = [ qtlocation