qtspeech: fix build on Darwin

This commit is contained in:
Mukul Agarwal
2026-07-13 20:16:46 -04:00
parent fc381fcbc7
commit 23c83f33ec

View File

@@ -2,6 +2,7 @@
qtModule,
lib,
stdenv,
llvmPackages,
qtbase,
qtmultimedia,
pkg-config,
@@ -12,7 +13,10 @@
qtModule {
pname = "qtspeech";
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [
pkg-config
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.lld ];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
flite
alsa-lib
@@ -22,4 +26,9 @@ qtModule {
qtbase
qtmultimedia
];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# Work around ld64's libc++ hardening issue.
# TODO: Remove once #536365 reaches this branch.
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
}