libsForQt5.qtbase: fix build with strictDeps = true

This commit is contained in:
FliegendeWurst
2024-11-23 10:47:27 +01:00
parent f3fd73aab7
commit 7819d5e37a
@@ -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 ''