qt5.*: LLVM 19 fixes (#356358)

Emily 1814dd2a a349976d

Changed files
+8 -6
pkgs
development
libraries
qt-5
+3 -6
pkgs/development/libraries/qt-5/modules/qtbase.nix
···
libxml2 libxslt openssl sqlite zlib
# Text rendering
-
harfbuzz icu
+
freetype harfbuzz icu
# Image formats
libjpeg libpng
···
dbus glib udev
# Text rendering
-
fontconfig freetype
+
fontconfig
libdrm
···
"-system-sqlite"
''-${if mysqlSupport then "plugin" else "no"}-sql-mysql''
''-${if postgresql != null then "plugin" else "no"}-sql-psql''
+
"-system-libpng"
"-make libs"
"-make tools"
···
++ (
if stdenv.hostPlatform.isDarwin then [
"-no-fontconfig"
-
"-qt-freetype"
-
"-qt-libpng"
"-no-framework"
"-no-rpath"
] else [
···
''-${lib.optionalString (cups == null) "no-"}cups''
"-dbus-linked"
"-glib"
-
] ++ [
-
"-system-libpng"
] ++ lib.optional withGtk3 "-gtk"
++ lib.optional withLibinput "-libinput"
++ [
+5
pkgs/development/libraries/qt-5/modules/qtlocation.nix
···
pname = "qtlocation";
propagatedBuildInputs = [ qtbase qtmultimedia ];
outputs = [ "bin" "out" "dev" ];
+
# Clang 18 treats a non-const, narrowing conversion in an initializer list as an error,
+
# which results in a failure building a 3rd party dependency of qtlocation. Just suppress it.
+
env = lib.optionalAttrs (stdenv.cc.isClang && (lib.versionAtLeast (lib.getVersion stdenv.cc) "18")) {
+
NIX_CFLAGS_COMPILE = "-Wno-c++11-narrowing-const-reference";
+
};
qmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [
# boost uses std::auto_ptr which has been disabled in clang with libcxx
# This flag re-enables this feature