Skip to content

Commit

Permalink
Remove osx_sdk & use darwin.xcode_8_2
Browse files Browse the repository at this point in the history
xcode_8_2 should provide this for us now & jsaddle has been updated to
handle this.
  • Loading branch information
matthewbauer committed Jun 15, 2018
1 parent 58c5122 commit 587709e
Showing 1 changed file with 1 addition and 33 deletions.
34 changes: 1 addition & 33 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,39 +68,7 @@ let iosSupport =
armv7aImpure = aarch32;
};
ios =
let config = {
allowUnfree = true;
packageOverrides = p: {
buildPackages = p.buildPackages // {
osx_sdk = p.buildPackages.callPackage ({ stdenv }:
let version = "10";
in stdenv.mkDerivation rec {
name = "iOS.sdk";

src = p.stdenv.cc.sdk;

unpackPhase = "true";
configurePhase = "true";
buildPhase = "true";
target_prefix = stdenv.lib.replaceStrings ["-"] ["_"] p.targetPlatform.config;
setupHook = ./scripts/setup-hook-ios.sh;

installPhase = ''
mkdir -p $out/
echo "Source is: $src"
cp -r $src/* $out/
'';

meta = with stdenv.lib; {
description = "The IOS OS ${version} SDK";
maintainers = with maintainers; [ copumpkin ];
platforms = platforms.darwin;
license = licenses.unfree;
};
}) {};
};
};
};
let config = { allowUnfree = true; };
in nixpkgs.lib.mapAttrs (_: args: if args == null then null else nixpkgsFunc args) rec {
simulator64 = {
system = "x86_64-darwin";
Expand Down

0 comments on commit 587709e

Please sign in to comment.