xcbuild: try to fix sdk not found

This is an attempt to get rid of the issues with sdk not found in
xcbuild when building pinentry_mac.
This commit is contained in:
Matthew Bauer 2017-04-09 04:27:56 -05:00
parent 34422f428d
commit 87e6b2c50f
No known key found for this signature in database
GPG Key ID: E04D0AD9469141C3
2 changed files with 5 additions and 1 deletions

View File

@ -241,6 +241,6 @@ stdenv.mkDerivation {
mkdir -p $out/Developer/SDKs/
cd $out/Developer/SDKs/
ln -s ${sdk}
ln -s ${sdk} macosx10.10.sdk
'';
}

View File

@ -60,9 +60,13 @@ stdenv.mkDerivation {
--add-flags "DERIVED_DATA_DIR=." \
--set DEVELOPER_DIR "$out"
wrapProgram $out/bin/xcrun \
--add-flags "-sdk macosx10.10" \
--set DEVELOPER_DIR "$out"
wrapProgram $out/bin/xcode-select \
--set DEVELOPER_DIR "$out"
mkdir -p $out/usr/bin/
ln -s $out/bin/xcrun $out/usr/bin/xcrun
'';
inherit (xcbuild) meta;