qt6.qtdeclarative: work around ld64 hardening issue

This commit is contained in:
Martin Weinelt
2026-07-08 05:03:15 +02:00
parent ca8fd57b70
commit e8042ddc43
@@ -11,6 +11,8 @@
pkgsBuildBuild,
replaceVars,
fetchpatch,
# TODO: Clean up on `staging`.
llvmPackages,
}:
qtModule {
@@ -27,6 +29,8 @@ qtModule {
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.sigtool
# TODO: Clean up on `staging`.
llvmPackages.lld
];
patches = [
@@ -69,6 +73,11 @@ qtModule {
"-DQt6QmlTools_DIR=${pkgsBuildBuild.qt6.qtdeclarative}/lib/cmake/Qt6QmlTools"
];
env = lib.optionalAttrs (stdenv.hostPlatform.isDarwin) {
# TODO: Clean up on `staging`.
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
meta.maintainers = with lib.maintainers; [
nickcao
outfoxxed