2015-10-06 09:11:00 +02:00
|
|
|
{ stdenv, osx_private_sdk, CF }:
|
|
|
|
|
2017-10-30 13:45:36 +01:00
|
|
|
stdenv.mkDerivation {
|
2015-10-06 09:11:00 +02:00
|
|
|
name = "${CF.name}-private";
|
2015-10-27 01:12:45 +01:00
|
|
|
phases = [ "installPhase" "fixupPhase" ];
|
2015-10-06 09:11:00 +02:00
|
|
|
installPhase = ''
|
2015-10-27 01:12:45 +01:00
|
|
|
dest=$out/Library/Frameworks/CoreFoundation.framework/Headers
|
|
|
|
mkdir -p $dest
|
|
|
|
pushd $dest
|
2017-10-30 13:45:36 +01:00
|
|
|
for file in ${CF}/Library/Frameworks/CoreFoundation.framework/Headers/*; do
|
2017-11-09 23:29:41 +01:00
|
|
|
ln -sf $file
|
2017-10-30 13:45:36 +01:00
|
|
|
done
|
2015-10-27 01:12:45 +01:00
|
|
|
|
2017-11-09 23:29:41 +01:00
|
|
|
# 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
|
2015-10-06 09:11:00 +02:00
|
|
|
'';
|
2015-10-27 01:12:45 +01:00
|
|
|
|
|
|
|
setupHook = ./setup-hook.sh;
|
2015-10-06 09:11:00 +02:00
|
|
|
}
|