From cec6862940c2deb71b599536dc31c5d10a43b5d6 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sat, 24 Sep 2022 23:14:43 +0800 Subject: [PATCH] qt6.qtdeclarative: reduce closure size by removing reference to qtbase.dev before: /nix/store/g7k03425nzhlwcldc85fyw4bly7bwk9a-qtdeclarative-6.3.2 1.7G after: /nix/store/x08j7c378j6a8i1vam4iqgk4lk6sqzm0-qtdeclarative-6.3.2 566.7M --- pkgs/development/libraries/qt-6/modules/qtdeclarative.nix | 4 ++++ 1 file changed, 4 insertions(+) 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" + ]; }