darwin.copyfile: drop workaround for older Clang versions

This commit is contained in:
Randy Eckenrode
2025-10-09 18:23:27 -04:00
parent b68b26b3ba
commit 29b634dd2c
@@ -71,15 +71,6 @@ mkAppleDerivation {
xcodeHash = "sha256-SYW6pBlCQkcbkBqCq+W/mDYZZ7/co2HlPZwXzgh/LnI=";
postPatch = ''
# Disable experimental bounds safety stuff thats not available in LLVM 16.
for header in copyfile.h xattr_flags.h; do
substituteInPlace "$header" \
--replace-fail '__ptrcheck_abi_assume_single()' "" \
--replace-fail '__unsafe_indexable' ""
done
'';
env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include";
meta.description = "Darwin file copying library";