2016-06-26 06:45:55 +02: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 03:31:59 +02:00
|
|
|
name = "MacOSX.sdk";
|
2016-06-26 06:45:55 +02:00
|
|
|
buildInputs = [ xcbuild ];
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/
|
2016-11-06 01:51:15 +01:00
|
|
|
plutil -convert xml1 -o $out/SDKSettings.plist ${writeText "SDKSettings.json" (builtins.toJSON SDKSettings)}
|
2016-06-26 06:45:55 +02:00
|
|
|
|
|
|
|
mkdir -p $out/System/Library/CoreServices/
|
2016-11-06 01:51:15 +01:00
|
|
|
plutil -convert xml1 -o $out/System/Library/CoreServices/SystemVersion.plist ${writeText "SystemVersion.plist" (builtins.toJSON SystemVersion)}
|
2016-06-26 06:45:55 +02:00
|
|
|
'';
|
|
|
|
}
|