2016-07-23 00:54:25 +02:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2014-09-30 04:54:45 +02:00
|
|
|
|
2017-10-30 13:45:36 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "OSXPrivateSDK";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "samdmarshall";
|
|
|
|
repo = "OSXPrivateSDK";
|
|
|
|
rev = "f4d52b60e86b496abfaffa119a7d299562d99783";
|
|
|
|
sha256 = "0bv0884yxpvk2ishxj8gdy1w6wb0gwfq55q5qjp0s8z0z7f63zqh";
|
|
|
|
};
|
|
|
|
|
2018-05-11 15:41:24 +02:00
|
|
|
# NOTE: we install only headers that are really needed to keep closure size
|
2017-10-30 13:45:36 +01:00
|
|
|
# reasonable.
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/include
|
|
|
|
sdk10=PrivateSDK10.10.sparse.sdk
|
|
|
|
sdk=PrivateSDK10.9.sparse.sdk
|
|
|
|
cp $sdk/usr/local/include/sandbox_private.h $out/include/sandbox_private.h
|
|
|
|
# this can be removed once we dtrace binary
|
|
|
|
cp $sdk/usr/local/include/security_utilities/utilities_dtrace.h $out/include/utilities_dtrace.h
|
|
|
|
cp -RL $sdk/usr/include/xpc $out/include/xpc
|
|
|
|
cp -RL $sdk/usr/local/include/bsm $out/include/bsm
|
|
|
|
cp -RL $sdk/System/Library/Frameworks/Security.framework/Versions/A/PrivateHeaders $out/include/SecurityPrivateHeaders
|
|
|
|
cp -RL $sdk10/System/Library/Frameworks/CoreFoundation.framework/Headers $out/include/CoreFoundationPrivateHeaders
|
|
|
|
'';
|
2015-02-14 23:06:46 +01:00
|
|
|
}
|