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 {
|
|
|
|
name = "nix.nixpkgs.sdk";
|
|
|
|
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
|
|
|
'';
|
|
|
|
}
|