Skip to content

Commit

Permalink
xcbuild: 0ab861ab -> 0.1.1 (#21895)
Browse files Browse the repository at this point in the history
* xcbuild: add xcode-select wrapper
* xcbuild: update to 0.1.1
  • Loading branch information
matthewbauer authored and globin committed Jan 19, 2017
1 parent 003ae42 commit 10cfe94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions pkgs/development/tools/xcbuild/default.nix
Expand Up @@ -15,14 +15,14 @@ let
sha256 = "0wasql7ph5g473zxhc2z47z3pjp42q0dsn4gpijwzbxawid71b4w";
};
in stdenv.mkDerivation rec {
name = "xcbuild-${stdenv.lib.substring 0 8 version}";
version = "0ab861abcc11185a17d59608f96a015752a6fadc";
name = "xcbuild-${version}";
version = "0.1.1";

src = fetchFromGitHub {
owner = "facebook";
repo = "xcbuild";
rev = version;
sha256 = "12h0rn8v0js2vph2pwp5wvcrfkj12nz365i5qxw9miyfn4msnz26";
sha256 = "0i98c6lii8r3bgs5gj7div12pxyzjvm4qqzmmzgr7dyhj00qa8r5";
};

prePatch = ''
Expand All @@ -39,6 +39,8 @@ in stdenv.mkDerivation rec {
rmdir $out/usr
'';

NIX_CFLAGS_COMPILE = "-Wno-error=strict-aliasing";

buildInputs = [ cmake zlib libxml2 libpng ninja ]
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices CoreGraphics ImageIO ];

Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/tools/xcbuild/wrapper.nix
Expand Up @@ -60,7 +60,8 @@ stdenv.mkDerivation {
--add-flags "DERIVED_DATA_DIR=." \
--set DEVELOPER_DIR "$out"
wrapProgram $out/bin/xcrun \
--add-flags "-sdk ${sdkName}" \
--set DEVELOPER_DIR "$out"
wrapProgram $out/bin/xcode-select \
--set DEVELOPER_DIR "$out"
'';

Expand Down

0 comments on commit 10cfe94

Please sign in to comment.