31 lines
789 B
Nix
31 lines
789 B
Nix
{ stdenv, osx_private_sdk, CF }:
|
|
|
|
let
|
|
headers = [
|
|
"CFAttributedString.h"
|
|
"CFFileDescriptor.h"
|
|
"CFFileSecurity.h"
|
|
"CFNotificationCenter.h"
|
|
"CFStringTokenizer.h"
|
|
"CFURLEnumerator.h"
|
|
"CoreFoundation.h"
|
|
];
|
|
|
|
in stdenv.mkDerivation {
|
|
name = "${CF.name}-private";
|
|
phases = [ "installPhase" "fixupPhase" ];
|
|
installPhase = ''
|
|
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
|
|
'';
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
}
|