2018-07-21 01:44:44 +01:00
|
|
|
{ appleDerivation, ed, unifdef, Libc_old, Libc_10-9 }:
|
2015-02-08 06:53:52 +00:00
|
|
|
|
|
|
|
appleDerivation {
|
2017-08-10 23:57:42 +01:00
|
|
|
nativeBuildInputs = [ ed unifdef ];
|
2015-02-08 06:53:52 +00:00
|
|
|
|
|
|
|
# TODO: asl.h actually comes from syslog project now
|
|
|
|
installPhase = ''
|
|
|
|
export SRCROOT=$PWD
|
|
|
|
export DSTROOT=$out
|
|
|
|
export PUBLIC_HEADERS_FOLDER_PATH=include
|
|
|
|
export PRIVATE_HEADERS_FOLDER_PATH=include
|
|
|
|
bash xcodescripts/headers.sh
|
|
|
|
|
2016-08-24 12:35:30 +01:00
|
|
|
cp ${Libc_10-9}/include/NSSystemDirectories.h $out/include
|
|
|
|
|
2015-02-08 06:53:52 +00:00
|
|
|
# Ugh Apple stopped releasing this stuff so we need an older one...
|
|
|
|
cp ${Libc_old}/include/spawn.h $out/include
|
|
|
|
cp ${Libc_old}/include/setjmp.h $out/include
|
|
|
|
cp ${Libc_old}/include/ucontext.h $out/include
|
|
|
|
cp ${Libc_old}/include/pthread*.h $out/include
|
|
|
|
cp ${Libc_old}/include/sched.h $out/include
|
|
|
|
cp -R ${Libc_old}/include/malloc $out/include
|
|
|
|
|
|
|
|
mkdir -p $out/include/libkern
|
|
|
|
cp ${Libc_old}/include/asl.h $out/include
|
|
|
|
cp ${Libc_old}/include/libproc.h $out/include
|
|
|
|
cp ${Libc_old}/include/libkern/OSAtomic.h $out/include/libkern
|
|
|
|
cp ${Libc_old}/include/libkern/OSCacheControl.h $out/include/libkern
|
|
|
|
'';
|
|
|
|
}
|