2016-06-26 05:45:55 +01:00
|
|
|
{ stdenv, writeText, toolchainName, sdkName, xcbuild }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
SDKSettings = {
|
|
|
|
CanonicalName = sdkName;
|
|
|
|
DisplayName = sdkName;
|
|
|
|
Toolchains = [ toolchainName ];
|
|
|
|
Version = "10.10";
|
|
|
|
MaximumDeploymentTarget = "10.10";
|
|
|
|
isBaseSDK = "YES";
|
|
|
|
};
|
|
|
|
|
|
|
|
SystemVersion = {
|
|
|
|
ProductName = "Mac OS X";
|
|
|
|
ProductVersion = "10.10";
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-10-12 02:31:59 +01:00
|
|
|
name = "MacOSX.sdk";
|
2016-06-26 05:45:55 +01:00
|
|
|
buildInputs = [ xcbuild ];
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/
|
2016-11-06 00:51:15 +00:00
|
|
|
plutil -convert xml1 -o $out/SDKSettings.plist ${writeText "SDKSettings.json" (builtins.toJSON SDKSettings)}
|
2016-06-26 05:45:55 +01:00
|
|
|
|
|
|
|
mkdir -p $out/System/Library/CoreServices/
|
2016-11-06 00:51:15 +00:00
|
|
|
plutil -convert xml1 -o $out/System/Library/CoreServices/SystemVersion.plist ${writeText "SystemVersion.plist" (builtins.toJSON SystemVersion)}
|
2016-06-26 05:45:55 +01:00
|
|
|
'';
|
|
|
|
}
|