summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/osx-sdk/default.nix
blob: 612bf003743cc4176c3fbda31c6c28cc8df2928e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv }:

let
  version = "10.9";
in stdenv.mkDerivation {
  name = "MacOSX10.9.sdk";

  src = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk";

  unpackPhase    = "true";
  configurePhase = "true";
  buildPhase     = "true";

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

  meta = with stdenv.lib; {
    description = "The Mac OS ${version} SDK";
    maintainers = with maintainers; [ copumpkin ];
    platforms   = platforms.darwin;
    license     = licenses.unfree;
  };
}