2012-11-07 20:10:39 +00:00
|
|
|
{pkgs, pkgs_i686}:
|
|
|
|
|
|
|
|
rec {
|
|
|
|
platformTools = import ./platform-tools.nix {
|
2012-11-08 15:49:36 +00:00
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
2012-11-07 20:10:39 +00:00
|
|
|
stdenv_32bit = pkgs_i686.stdenv;
|
|
|
|
};
|
|
|
|
|
2013-07-31 14:00:57 +00:00
|
|
|
buildTools = import ./build-tools.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
|
|
|
stdenv_32bit = pkgs_i686.stdenv;
|
|
|
|
zlib_32bit = pkgs_i686.zlib;
|
|
|
|
};
|
|
|
|
|
2012-11-07 20:10:39 +00:00
|
|
|
support = import ./support.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
|
|
|
};
|
|
|
|
|
2014-08-02 01:26:21 +00:00
|
|
|
supportRepository = import ./support-repository.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
|
|
|
};
|
|
|
|
|
2012-11-07 20:10:39 +00:00
|
|
|
platforms = if (pkgs.stdenv.system == "i686-linux" || pkgs.stdenv.system == "x86_64-linux")
|
|
|
|
then import ./platforms-linux.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
|
|
|
}
|
|
|
|
else if pkgs.stdenv.system == "x86_64-darwin"
|
|
|
|
then import ./platforms-macosx.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
|
|
|
}
|
|
|
|
else throw "Platform: ${pkgs.stdenv.system} not supported!";
|
|
|
|
|
|
|
|
sysimages = import ./sysimages.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
|
|
|
};
|
|
|
|
|
|
|
|
addons = import ./addons.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
|
|
|
};
|
|
|
|
|
|
|
|
androidsdk = import ./androidsdk.nix {
|
2012-11-08 15:49:36 +00:00
|
|
|
inherit (pkgs) stdenv fetchurl unzip makeWrapper;
|
2013-08-08 08:40:09 +00:00
|
|
|
inherit (pkgs) freetype fontconfig glib gtk atk mesa file alsaLib jdk;
|
2013-08-07 20:12:44 +00:00
|
|
|
inherit (pkgs.xorg) libX11 libXext libXrender libxcb libXau libXdmcp libXtst;
|
2012-11-07 20:10:39 +00:00
|
|
|
|
2014-08-02 01:26:21 +00:00
|
|
|
inherit platformTools buildTools support supportRepository platforms sysimages addons;
|
2012-11-07 20:10:39 +00:00
|
|
|
|
|
|
|
stdenv_32bit = pkgs_i686.stdenv;
|
|
|
|
zlib_32bit = pkgs_i686.zlib;
|
|
|
|
libX11_32bit = pkgs_i686.xorg.libX11;
|
|
|
|
libxcb_32bit = pkgs_i686.xorg.libxcb;
|
|
|
|
libXau_32bit = pkgs_i686.xorg.libXau;
|
|
|
|
libXdmcp_32bit = pkgs_i686.xorg.libXdmcp;
|
|
|
|
libXext_32bit = pkgs_i686.xorg.libXext;
|
2013-07-31 14:00:57 +00:00
|
|
|
mesa_32bit = pkgs_i686.mesa;
|
2013-08-05 20:18:56 +00:00
|
|
|
alsaLib_32bit = pkgs_i686.alsaLib;
|
2012-11-07 20:10:39 +00:00
|
|
|
};
|
|
|
|
|
2014-05-25 09:30:58 +00:00
|
|
|
androidsdk_2_1 = androidsdk {
|
|
|
|
platformVersions = [ "7" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
2014-01-13 12:25:12 +00:00
|
|
|
androidsdk_2_2 = androidsdk {
|
|
|
|
platformVersions = [ "8" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2014-09-02 12:05:09 +00:00
|
|
|
|
|
|
|
androidsdk_2_3_3 = androidsdk {
|
|
|
|
platformVersions = [ "10" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
androidsdk_3_0 = androidsdk {
|
|
|
|
platformVersions = [ "11" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
androidsdk_3_1 = androidsdk {
|
|
|
|
platformVersions = [ "12" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
androidsdk_3_2 = androidsdk {
|
|
|
|
platformVersions = [ "13" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2014-01-13 12:25:12 +00:00
|
|
|
|
|
|
|
androidsdk_4_0 = androidsdk {
|
2014-09-02 12:05:09 +00:00
|
|
|
platformVersions = [ "14" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
androidsdk_4_0_3 = androidsdk {
|
2014-01-13 12:25:12 +00:00
|
|
|
platformVersions = [ "15" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
2012-11-08 12:55:53 +00:00
|
|
|
androidsdk_4_1 = androidsdk {
|
|
|
|
platformVersions = [ "16" ];
|
2013-07-31 16:56:27 +00:00
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
2012-11-08 12:55:53 +00:00
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
2013-08-01 09:21:54 +00:00
|
|
|
androidsdk_4_2 = androidsdk {
|
|
|
|
platformVersions = [ "17" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
2013-09-18 11:07:47 +00:00
|
|
|
androidsdk_4_3 = androidsdk {
|
|
|
|
platformVersions = [ "18" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" "x86" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2014-04-20 09:29:10 +00:00
|
|
|
|
2014-05-25 09:30:58 +00:00
|
|
|
androidsdk_4_4 = androidsdk {
|
|
|
|
platformVersions = [ "19" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" "x86" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
2014-04-20 09:29:10 +00:00
|
|
|
androidndk = import ./androidndk.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl zlib ncurses;
|
|
|
|
};
|
2013-09-18 11:07:47 +00:00
|
|
|
|
2012-11-07 20:10:39 +00:00
|
|
|
buildApp = import ./build-app.nix {
|
2014-04-20 09:29:10 +00:00
|
|
|
inherit (pkgs) stdenv jdk ant gnumake gawk file which;
|
|
|
|
inherit androidsdk androidndk;
|
2012-11-07 20:10:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
emulateApp = import ./emulate-app.nix {
|
|
|
|
inherit (pkgs) stdenv;
|
|
|
|
inherit androidsdk;
|
|
|
|
};
|
|
|
|
}
|