diff --git a/pkgs/development/libraries/qt-6/modules/qtdeclarative.nix b/pkgs/development/libraries/qt-6/modules/qtdeclarative.nix index b76baea49930..c8abc71a2235 100644 --- a/pkgs/development/libraries/qt-6/modules/qtdeclarative.nix +++ b/pkgs/development/libraries/qt-6/modules/qtdeclarative.nix @@ -32,4 +32,8 @@ qtModule { "bin/qmlscene" "bin/qmltestrunner" ]; + + NIX_CFLAGS_COMPILE = [ + "-fmacro-prefix-map=${qtbase.dev}=qtbase.dev" + ]; }