swiftPackages.swift-docc: add patch for modern LLVM

Emily 1884f3de 1474a620

Changed files
+23 -1
pkgs
development
compilers
swift
+10 -1
pkgs/development/compilers/swift/swift-docc/default.nix
···
XCTest
];
-
configurePhase = generated.configure;
+
configurePhase =
+
generated.configure
+
# Fix the build with modern Clang.
+
#
+
# Based on the upstream fix for Musl:
+
# <https://github.com/apple/swift-nio/commit/fc6e3c0eefb28adf641531180b81aaf41b02ed20>
+
+ ''
+
swiftpmMakeMutable swift-nio
+
patch -p1 -d .build/checkouts/swift-nio -i ${./fix-swift-nio.patch}
+
'';
# We only install the docc binary, so don't need the other products.
# This works around a failure building generate-symbol-graph:
+13
pkgs/development/compilers/swift/swift-docc/fix-swift-nio.patch
···
+
diff --git a/Package.swift b/Package.swift
+
index 39c6fb4b2f..02c08b898d 100644
+
--- a/Package.swift
+
+++ b/Package.swift
+
@@ -26,7 +26,7 @@
+
.target(name: "NIOFoundationCompat", dependencies: ["NIO"]),
+
.target(name: "CNIOAtomics", dependencies: []),
+
.target(name: "CNIOSHA1", dependencies: []),
+
- .target(name: "CNIOLinux", dependencies: []),
+
+ .target(name: "CNIOLinux", dependencies: [], cSettings: [.define("_GNU_SOURCE")]),
+
.target(name: "CNIODarwin", dependencies: [], cSettings: [.define("__APPLE_USE_RFC_3542")]),
+
.target(name: "CNIOWindows", dependencies: []),
+
.target(name: "NIOConcurrencyHelpers",