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