Skip to content

Commit

Permalink
xcbuild: try to fix sdk not found
Browse files Browse the repository at this point in the history
This is an attempt to get rid of the issues with sdk not found in
xcbuild when building pinentry_mac.
  • Loading branch information
matthewbauer committed Apr 9, 2017
1 parent 34422f4 commit 87e6b2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/tools/xcbuild/platform.nix
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,6 @@ stdenv.mkDerivation {
mkdir -p $out/Developer/SDKs/
cd $out/Developer/SDKs/
ln -s ${sdk}
ln -s ${sdk} macosx10.10.sdk
'';
}
4 changes: 4 additions & 0 deletions pkgs/development/tools/xcbuild/wrapper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 87e6b2c

Please sign in to comment.