swiftPackages.Dispatch: backport patch for modern LLVM

This commit is contained in:
Emily
2025-08-11 15:36:06 +01:00
parent e0d9c9386f
commit 3b773c7bae

View File

@@ -2,6 +2,7 @@
lib,
stdenv,
callPackage,
fetchpatch,
cmake,
ninja,
useSwift ? true,
@@ -31,7 +32,15 @@ stdenv.mkDerivation {
swift
];
patches = [ ./disable-swift-overlay.patch ];
patches = [
# Fix the build with modern Clang.
(fetchpatch {
url = "https://github.com/swiftlang/swift-corelibs-libdispatch/commit/30bb8019ba79cdae0eb1dc0c967c17996dd5cc0a.patch";
hash = "sha256-wPZQ4wtEWk8HaKMfzjamlU6p/IW5EFiTssY63rGM+ZA=";
})
./disable-swift-overlay.patch
];
cmakeFlags = lib.optional useSwift "-DENABLE_SWIFT=ON";