From 7819d5e37acfe670ace9cfdddb9eeeadbacb7803 Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Wed, 6 Nov 2024 17:04:11 +0100 Subject: [PATCH] libsForQt5.qtbase: fix build with strictDeps = true --- pkgs/development/libraries/qt-5/modules/qtbase.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/qt-5/modules/qtbase.nix b/pkgs/development/libraries/qt-5/modules/qtbase.nix index 1ed4bfc8b2c2..1ca065e94ce9 100644 --- a/pkgs/development/libraries/qt-5/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-5/modules/qtbase.nix @@ -90,6 +90,7 @@ stdenv.mkDerivation (finalAttrs: ({ ++ lib.optional (postgresql != null) postgresql; nativeBuildInputs = [ bison flex gperf lndir perl pkg-config which ] + ++ lib.optionals (mysqlSupport) [ libmysqlclient ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ xcbuild ]; } // lib.optionalAttrs (stdenv.buildPlatform != stdenv.hostPlatform) { @@ -101,6 +102,8 @@ stdenv.mkDerivation (finalAttrs: ({ propagatedNativeBuildInputs = [ lndir ]; + strictDeps = true; + # libQt5Core links calls CoreFoundation APIs that call into the system ICU. Binaries linked # against it will crash during build unless they can access `/usr/share/icu/icudtXXl.dat`. propagatedSandboxProfile = lib.optionalString stdenv.hostPlatform.isDarwin ''