Randy Eckenrode 2024-09-21 21:30:22 -04:00
parent 4d328d0342
commit d5f4ae43b4
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9
3 changed files with 9 additions and 3 deletions

View File

@ -14,6 +14,8 @@ library(
'copyfile',
c_args : [
'-D__DARWIN_NOW_CANCELABLE=1',
# https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/clonefile.h#L35
'-DCLONE_ACL=0x0004',
# https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/bsd/sys/kdebug.h#L691
'-DDBG_DECMP=0x12',
# https://github.com/apple-oss-distributions/xnu/blob/94d3b452840153a99b38a3a9659680b2a006908e/libkern/os/base.h#L129

View File

@ -73,7 +73,7 @@ mkAppleDerivation {
"man"
];
xcodeHash = "sha256-RClwLwWuieJzKJl1YRCrGBxPgWy0MDwFwN1VZ4GBxGY=";
xcodeHash = "sha256-SYW6pBlCQkcbkBqCq+W/mDYZZ7/co2HlPZwXzgh/LnI=";
postPatch = ''
# Disable experimental bounds safety stuff thats not available in LLVM 16.
@ -82,6 +82,10 @@ mkAppleDerivation {
--replace-fail '__ptrcheck_abi_assume_single()' "" \
--replace-fail '__unsafe_indexable' ""
done
# clang 16 does not support C23 empty initializers. This can be removed once the bootstrap tools are updated.
substituteInPlace copyfile.c \
--replace-fail 'filesec_t fsec_tmp = {};' 'filesec_t fsec_tmp = {0};'
'';
env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include";

View File

@ -28,8 +28,8 @@
"version": "136"
},
"copyfile": {
"hash": "sha256-uHqLFOIpXK+n0RHyOZzVsP2DDZcFDivKCnqHBaXvHns=",
"version": "138"
"hash": "sha256-lIhl5sr1gewIHkh10hD+H/I7MVPzlHlONGRMOO7OZuA=",
"version": "213"
},
"developer_cmds": {
"hash": "sha256-h0wMVlS6QdRvKOVJ74W9ziHYGApjvnk77AIR6ukYBRo=",