cf-private: overwrite headers from CF

This commit is contained in:
Daiderd Jordan 2017-11-09 23:29:41 +01:00
parent 3b7162839c
commit 63bac2c23e
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -7,12 +7,14 @@ stdenv.mkDerivation {
dest=$out/Library/Frameworks/CoreFoundation.framework/Headers
mkdir -p $dest
pushd $dest
cp -Lv ${osx_private_sdk}/include/CoreFoundationPrivateHeaders/* $dest
for file in ${CF}/Library/Frameworks/CoreFoundation.framework/Headers/*; do
ln -sf $file
ln -sf $file
done
popd
# Copy or overwrite private headers, some of these might already
# exist in CF but the private versions have more information.
cp -Lfv ${osx_private_sdk}/include/CoreFoundationPrivateHeaders/* $dest
popd
'';
setupHook = ./setup-hook.sh;