diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2018-01-20 20:42:29 +0100 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2018-01-20 20:42:29 +0100 |
commit | 6fba728a6dd93212002511b6c0bf2eb25c8b2932 (patch) | |
tree | 364903153404c4ddfc720be0bf8968c9c8eddbad /pkgs/development/tools/xcbuild | |
parent | 394e98937654bf03416d6cdeb69c673271ac7a97 (diff) | |
download | nixlib-6fba728a6dd93212002511b6c0bf2eb25c8b2932.tar nixlib-6fba728a6dd93212002511b6c0bf2eb25c8b2932.tar.gz nixlib-6fba728a6dd93212002511b6c0bf2eb25c8b2932.tar.bz2 nixlib-6fba728a6dd93212002511b6c0bf2eb25c8b2932.tar.lz nixlib-6fba728a6dd93212002511b6c0bf2eb25c8b2932.tar.xz nixlib-6fba728a6dd93212002511b6c0bf2eb25c8b2932.tar.zst nixlib-6fba728a6dd93212002511b6c0bf2eb25c8b2932.zip |
xcbuild: include version in sdk
Without this xcbuild can detect an incorrect version for store paths that have a sequence of digits in their hash. ld: malformed 32-bit x.y.z version number: 85294 /nix/store/yz966rdvw1blblvzs15pxpcd85294isw-MacOSX.platform/Developer/SDKs/MacOSX.sdk
Diffstat (limited to 'pkgs/development/tools/xcbuild')
-rw-r--r-- | pkgs/development/tools/xcbuild/sdk.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/development/tools/xcbuild/sdk.nix b/pkgs/development/tools/xcbuild/sdk.nix index 169fd5f6ec66..87bbedd57880 100644 --- a/pkgs/development/tools/xcbuild/sdk.nix +++ b/pkgs/development/tools/xcbuild/sdk.nix @@ -1,26 +1,30 @@ { stdenv, writeText, toolchainName, sdkName, xcbuild }: let + # TODO: expose MACOSX_DEPLOYMENT_TARGET in nix so we can use it here. + version = "10.10"; SDKSettings = { CanonicalName = sdkName; DisplayName = sdkName; Toolchains = [ toolchainName ]; - Version = "10.10"; - MaximumDeploymentTarget = "10.10"; + Version = version; + MaximumDeploymentTarget = version; isBaseSDK = "YES"; }; SystemVersion = { ProductName = "Mac OS X"; - ProductVersion = "10.10"; + ProductVersion = version; }; - in stdenv.mkDerivation { - name = "MacOSX.sdk"; + name = "MacOSX${version}.sdk"; + inherit version; + buildInputs = [ xcbuild ]; + buildCommand = '' mkdir -p $out/ plutil -convert xml1 -o $out/SDKSettings.plist ${writeText "SDKSettings.json" (builtins.toJSON SDKSettings)} |