2015-10-06 09:11:00 +02:00
|
|
|
{ stdenv, osx_private_sdk, CF }:
|
|
|
|
|
|
|
|
let
|
|
|
|
headers = [
|
2015-10-28 18:52:39 +01:00
|
|
|
"CFAvailability.h"
|
2015-10-06 09:11:00 +02:00
|
|
|
"CFAttributedString.h"
|
2015-10-27 01:12:45 +01:00
|
|
|
"CFFileDescriptor.h"
|
|
|
|
"CFFileSecurity.h"
|
2015-10-06 09:11:00 +02:00
|
|
|
"CFNotificationCenter.h"
|
2015-10-27 01:12:45 +01:00
|
|
|
"CFStringTokenizer.h"
|
|
|
|
"CFURLEnumerator.h"
|
2015-10-28 18:52:39 +01:00
|
|
|
"CFURL.h"
|
2015-10-06 09:11:00 +02:00
|
|
|
"CoreFoundation.h"
|
|
|
|
];
|
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
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
|
|
|
|
for file in ${CF}/Library/Frameworks/CoreFoundation.framework/Headers/*; do
|
|
|
|
ln -s $file
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
|
|
|
install -m 0644 ${osx_private_sdk}/PrivateSDK10.10.sparse.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/{${stdenv.lib.concatStringsSep "," headers}} $dest
|
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
|
|
|
}
|