diff --git a/pkgs/development/compilers/swift/libdispatch/default.nix b/pkgs/development/compilers/swift/libdispatch/default.nix index 3760dfb405b9..4b30a1d80673 100644 --- a/pkgs/development/compilers/swift/libdispatch/default.nix +++ b/pkgs/development/compilers/swift/libdispatch/default.nix @@ -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";