qbittorrent: fix darwin build

This commit is contained in:
éclairevoyant
2026-07-11 10:44:23 -04:00
parent 0e22a80775
commit fac56b9353

View File

@@ -17,6 +17,7 @@
wrapGAppsHook3,
zlib,
nixosTests,
llvmPackages,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -35,6 +36,10 @@ stdenv.mkDerivation (finalAttrs: {
pkg-config
wrapGAppsHook3
qt6.wrapQtAppsHook
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# TODO: Remove once #536365 reaches this branch
llvmPackages.lld
];
buildInputs = [
@@ -60,6 +65,11 @@ stdenv.mkDerivation (finalAttrs: {
]
++ lib.optionals (!webuiSupport) [ "-DWEBUI=OFF" ];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# TODO: Remove once #536365 reaches this branch
NIX_CFLAGS_LINK = "-fuse-ld=lld";
};
qtWrapperArgs = lib.optionals trackerSearch [ "--prefix PATH : ${lib.makeBinPath [ python3 ]}" ];
dontWrapGApps = true;