summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/apple-sdk
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-12-22 11:28:56 +0100
committerVladimír Čunát <vcunat@gmail.com>2016-12-22 11:28:56 +0100
commit2e03ae274d36e695e4db63fb0a6b71346621b6af (patch)
tree84af1a7ec323e1ce2865661756da1cca2b6ef07b /pkgs/os-specific/darwin/apple-sdk
parent41f55691a96ca4f37a87c8659884edf19b2c8446 (diff)
parent0c1382085b2969ce38359bcb28fc5dfe67cca7eb (diff)
downloadnixpkgs-2e03ae274d36e695e4db63fb0a6b71346621b6af.tar
nixpkgs-2e03ae274d36e695e4db63fb0a6b71346621b6af.tar.gz
nixpkgs-2e03ae274d36e695e4db63fb0a6b71346621b6af.tar.bz2
nixpkgs-2e03ae274d36e695e4db63fb0a6b71346621b6af.tar.lz
nixpkgs-2e03ae274d36e695e4db63fb0a6b71346621b6af.tar.xz
nixpkgs-2e03ae274d36e695e4db63fb0a6b71346621b6af.tar.zst
nixpkgs-2e03ae274d36e695e4db63fb0a6b71346621b6af.zip
Merge branch 'master' into staging
Diffstat (limited to 'pkgs/os-specific/darwin/apple-sdk')
-rw-r--r--pkgs/os-specific/darwin/apple-sdk/default.nix26
-rw-r--r--pkgs/os-specific/darwin/apple-sdk/frameworks.nix3
2 files changed, 6 insertions, 23 deletions
diff --git a/pkgs/os-specific/darwin/apple-sdk/default.nix b/pkgs/os-specific/darwin/apple-sdk/default.nix
index 7a85790c57e..1148fe5c4a1 100644
--- a/pkgs/os-specific/darwin/apple-sdk/default.nix
+++ b/pkgs/os-specific/darwin/apple-sdk/default.nix
@@ -1,42 +1,29 @@
-{ stdenv, fetchurl, xar, xz, cpio, pkgs, python }:
+{ stdenv, fetchurl, xar, gzip, cpio, pkgs }:
 
 let
-  # TODO: make this available to other packages and generalize the unpacking a bit
-  # from https://gist.github.com/pudquick/ff412bcb29c9c1fa4b8d
-  unpbzx = fetchurl {
-    url    = "https://gist.githubusercontent.com/pudquick/ff412bcb29c9c1fa4b8d/raw/24b25538ea8df8d0634a2a6189aa581ccc6a5b4b/parse_pbzx2.py";
-    sha256 = "0jgp6qbfl36i0jlz7as5zk2w20z4ca8wlrhdw49lwsld6wi3rfhc";
-  };
-
   # sadly needs to be exported because security_tool needs it
   sdk = stdenv.mkDerivation rec {
-    version = "10.11";
+    version = "10.9";
     name    = "MacOS_SDK-${version}";
 
-    # This URL comes from https://swscan.apple.com/content/catalogs/others/index-10.11-1.sucatalog, which we found by:
-    #  1. Google: site:swscan.apple.com and look for a name that seems appropriate for your version
-    #  2. In the resulting file, search for a file called DevSDK ending in .pkg
-    #  3. ???
-    #  4. Profit
     src = fetchurl {
-      url    = "http://swcdn.apple.com/content/downloads/61/58/031-85396/fsu2775ydsciy13wycm3zngxrjcp0eqsl2/DevSDK_OSX1011.pkg";
-      sha256 = "182yh8li653pjrzgk7s2dvsqm7vwkk6ry8n31qqs8c0xr67yrqgl";
+      url    = "http://swcdn.apple.com/content/downloads/27/02/031-06182/xxog8vxu8i6af781ivf4uhy6yt1lslex34/DevSDK_OSX109.pkg";
+      sha256 = "16b7aplha5573yl1d44nl2yxzp0w2hafihbyh7930wrcvba69iy4";
     };
 
-    buildInputs = [ xar xz cpio python ];
+    buildInputs = [ xar gzip cpio ];
 
     phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
 
     unpackPhase = ''
       xar -x -f $src
-      python ${unpbzx} Payload
     '';
 
     installPhase = ''
       start="$(pwd)"
       mkdir -p $out
       cd $out
-      cat $start/Payload.*.xz | xz -d | cpio -idm
+      cat $start/Payload | gzip -d | cpio -idm
 
       mv usr/* .
       rmdir usr
@@ -127,7 +114,6 @@ let
         popd >/dev/null
       }
 
-
       linkFramework "${name}.framework"
     '';
 
diff --git a/pkgs/os-specific/darwin/apple-sdk/frameworks.nix b/pkgs/os-specific/darwin/apple-sdk/frameworks.nix
index cc99de258b2..3ecb3511422 100644
--- a/pkgs/os-specific/darwin/apple-sdk/frameworks.nix
+++ b/pkgs/os-specific/darwin/apple-sdk/frameworks.nix
@@ -52,7 +52,6 @@ with frameworks; with libs; {
   GSS                     = [];
   GameController          = [];
   GameKit                 = [ Foundation ];
-  Hypervisor              = [];
   ICADevices              = [ Carbon CF IOBluetooth ];
   IMServicePlugIn         = [];
   IOBluetoothUI           = [ IOBluetooth ];
@@ -117,6 +116,4 @@ with frameworks; with libs; {
   OpenDirectory       = [];
   Quartz              = [ QuickLook QTKit ];
   QuartzCore          = [ ApplicationServices CF CoreVideo OpenCL ];
-
-  vmnet = [];
 }