2018-02-20 23:31:16 +00:00
|
|
|
{ buildPackages, pkgs, pkgs_i686, targetPackages
|
|
|
|
, includeSources ? true
|
|
|
|
}:
|
2012-11-07 20:10:39 +00:00
|
|
|
|
|
|
|
rec {
|
|
|
|
platformTools = import ./platform-tools.nix {
|
2018-02-20 23:31:16 +00:00
|
|
|
inherit buildPackages pkgs;
|
2012-11-07 20:10:39 +00:00
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2013-07-31 15:00:57 +01:00
|
|
|
buildTools = import ./build-tools.nix {
|
2016-09-13 21:39:20 +01:00
|
|
|
inherit (pkgs) stdenv fetchurl unzip zlib file;
|
2013-07-31 15:00:57 +01:00
|
|
|
stdenv_32bit = pkgs_i686.stdenv;
|
|
|
|
zlib_32bit = pkgs_i686.zlib;
|
2016-09-13 21:39:20 +01:00
|
|
|
ncurses_32bit = pkgs_i686.ncurses5;
|
|
|
|
ncurses = pkgs.ncurses5;
|
2013-07-31 15:00:57 +01:00
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2012-11-07 20:10:39 +00:00
|
|
|
support = import ./support.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2014-08-02 02:26:21 +01: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;
|
|
|
|
};
|
|
|
|
|
2016-10-09 11:11:55 +01:00
|
|
|
sources = import ./sources.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
|
|
|
};
|
|
|
|
|
2012-11-07 20:10:39 +00:00
|
|
|
androidsdk = import ./androidsdk.nix {
|
2012-11-08 15:49:36 +00:00
|
|
|
inherit (pkgs) stdenv fetchurl unzip makeWrapper;
|
2018-02-24 13:12:44 +00:00
|
|
|
inherit (pkgs) zlib glxinfo freetype fontconfig glib gtk2 atk libGLU_combined file alsaLib jdk coreutils libpulseaudio dbus;
|
2016-07-25 20:47:39 +01:00
|
|
|
inherit (pkgs.xorg) libX11 libXext libXrender libxcb libXau libXdmcp libXtst xkeyboardconfig;
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2016-10-09 11:11:55 +01:00
|
|
|
inherit platformTools buildTools support supportRepository platforms sysimages addons sources includeSources;
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2012-11-07 20:10:39 +00:00
|
|
|
stdenv_32bit = pkgs_i686.stdenv;
|
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2014-05-25 10:30:58 +01:00
|
|
|
androidsdk_2_1 = androidsdk {
|
|
|
|
platformVersions = [ "7" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2014-01-13 12:25:12 +00:00
|
|
|
androidsdk_2_2 = androidsdk {
|
|
|
|
platformVersions = [ "8" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2014-09-02 13:05:09 +01:00
|
|
|
|
|
|
|
androidsdk_2_3_3 = androidsdk {
|
|
|
|
platformVersions = [ "10" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2014-09-02 13:05:09 +01:00
|
|
|
androidsdk_3_0 = androidsdk {
|
|
|
|
platformVersions = [ "11" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2014-09-02 13:05:09 +01:00
|
|
|
androidsdk_3_1 = androidsdk {
|
|
|
|
platformVersions = [ "12" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2014-09-02 13:05:09 +01:00
|
|
|
androidsdk_3_2 = androidsdk {
|
|
|
|
platformVersions = [ "13" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2014-01-13 12:25:12 +00:00
|
|
|
androidsdk_4_0 = androidsdk {
|
2014-09-02 13:05:09 +01:00
|
|
|
platformVersions = [ "14" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2014-09-02 13:05:09 +01:00
|
|
|
androidsdk_4_0_3 = androidsdk {
|
2014-01-13 12:25:12 +00:00
|
|
|
platformVersions = [ "15" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2012-11-08 12:55:53 +00:00
|
|
|
androidsdk_4_1 = androidsdk {
|
|
|
|
platformVersions = [ "16" ];
|
2013-07-31 17:56:27 +01:00
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
2012-11-08 12:55:53 +00:00
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2013-08-01 10:21:54 +01:00
|
|
|
androidsdk_4_2 = androidsdk {
|
|
|
|
platformVersions = [ "17" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2013-09-18 12:07:47 +01:00
|
|
|
androidsdk_4_3 = androidsdk {
|
|
|
|
platformVersions = [ "18" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" "x86" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2014-04-20 10:29:10 +01:00
|
|
|
|
2014-05-25 10:30:58 +01:00
|
|
|
androidsdk_4_4 = androidsdk {
|
|
|
|
platformVersions = [ "19" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" "x86" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
2014-12-16 07:22:55 +00:00
|
|
|
androidsdk_5_0_1 = androidsdk {
|
|
|
|
platformVersions = [ "21" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" "x86" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
2015-03-01 20:31:41 +00:00
|
|
|
androidsdk_5_0_1_extras = androidsdk {
|
|
|
|
platformVersions = [ "21" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" "x86" ];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
useExtraSupportLibs = true;
|
|
|
|
useGooglePlayServices = true;
|
|
|
|
};
|
|
|
|
|
2015-05-02 14:15:29 +01:00
|
|
|
androidsdk_5_1_1 = androidsdk {
|
|
|
|
platformVersions = [ "22" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" "x86" "x86_64"];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
androidsdk_5_1_1_extras = androidsdk {
|
|
|
|
platformVersions = [ "22" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" "x86" "x86_64"];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
useExtraSupportLibs = true;
|
|
|
|
useGooglePlayServices = true;
|
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2015-10-06 14:26:53 +01:00
|
|
|
androidsdk_6_0 = androidsdk {
|
|
|
|
platformVersions = [ "23" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" "x86" "x86_64"];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
2015-05-02 14:15:29 +01:00
|
|
|
|
2015-10-18 11:02:23 +01:00
|
|
|
androidsdk_6_0_extras = androidsdk {
|
|
|
|
platformVersions = [ "23" ];
|
|
|
|
abiVersions = [ "armeabi-v7a" "x86" "x86_64"];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
useExtraSupportLibs = true;
|
|
|
|
useGooglePlayServices = true;
|
2017-09-09 15:23:20 +01:00
|
|
|
useInstantApps = true;
|
2015-10-18 11:02:23 +01:00
|
|
|
};
|
|
|
|
|
2016-06-19 03:26:34 +01:00
|
|
|
androidsdk_7_0 = androidsdk {
|
|
|
|
platformVersions = [ "24" ];
|
|
|
|
abiVersions = [ "x86" "x86_64"];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
androidsdk_7_0_extras = androidsdk {
|
|
|
|
platformVersions = [ "24" ];
|
|
|
|
abiVersions = [ "x86" "x86_64"];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
useExtraSupportLibs = true;
|
|
|
|
useGooglePlayServices = true;
|
2017-09-09 15:23:20 +01:00
|
|
|
useInstantApps = true;
|
2016-06-19 03:26:34 +01:00
|
|
|
};
|
|
|
|
|
2017-06-10 02:32:25 +01:00
|
|
|
androidsdk_7_1_1 = androidsdk {
|
|
|
|
platformVersions = [ "25" ];
|
|
|
|
abiVersions = [ "x86" "x86_64"];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
androidsdk_7_1_1_extras = androidsdk {
|
|
|
|
platformVersions = [ "25" ];
|
|
|
|
abiVersions = [ "x86" "x86_64"];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
useExtraSupportLibs = true;
|
|
|
|
useGooglePlayServices = true;
|
2017-09-09 15:23:20 +01:00
|
|
|
useInstantApps = true;
|
2017-06-10 02:32:25 +01:00
|
|
|
};
|
|
|
|
|
2017-08-05 14:22:18 +01:00
|
|
|
androidsdk_8_0 = androidsdk {
|
|
|
|
platformVersions = [ "26" ];
|
|
|
|
abiVersions = [ "x86" "x86_64"];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
androidsdk_8_0_extras = androidsdk {
|
|
|
|
platformVersions = [ "26" ];
|
|
|
|
abiVersions = [ "x86" "x86_64"];
|
|
|
|
useGoogleAPIs = true;
|
|
|
|
useExtraSupportLibs = true;
|
|
|
|
useGooglePlayServices = true;
|
2017-09-09 15:23:20 +01:00
|
|
|
useInstantApps = true;
|
2017-08-05 14:22:18 +01:00
|
|
|
};
|
|
|
|
|
2014-04-20 10:29:10 +01:00
|
|
|
androidndk = import ./androidndk.nix {
|
2018-02-20 23:31:16 +00:00
|
|
|
inherit (buildPackages)
|
|
|
|
p7zip makeWrapper;
|
|
|
|
inherit (pkgs)
|
|
|
|
stdenv fetchurl zlib ncurses lib
|
|
|
|
coreutils file findutils gawk gnugrep gnused jdk which;
|
2014-11-24 08:16:08 +00:00
|
|
|
inherit platformTools;
|
2014-04-20 10:29:10 +01:00
|
|
|
};
|
2015-03-03 14:08:53 +00:00
|
|
|
|
2015-03-03 15:31:49 +00:00
|
|
|
androidndk_r8e = import ./androidndk_r8e.nix {
|
2018-02-20 23:31:16 +00:00
|
|
|
inherit (buildPackages)
|
|
|
|
makeWrapper;
|
|
|
|
inherit (pkgs)
|
|
|
|
stdenv fetchurl zlib ncurses lib
|
|
|
|
coreutils file findutils gawk gnugrep gnused jdk which;
|
2015-03-03 14:08:53 +00:00
|
|
|
inherit platformTools;
|
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2012-11-07 20:10:39 +00:00
|
|
|
buildApp = import ./build-app.nix {
|
2014-04-20 10:29:10 +01:00
|
|
|
inherit (pkgs) stdenv jdk ant gnumake gawk file which;
|
|
|
|
inherit androidsdk androidndk;
|
2012-11-07 20:10:39 +00:00
|
|
|
};
|
2018-02-21 02:34:29 +00:00
|
|
|
|
2012-11-07 20:10:39 +00:00
|
|
|
emulateApp = import ./emulate-app.nix {
|
|
|
|
inherit (pkgs) stdenv;
|
|
|
|
inherit androidsdk;
|
|
|
|
};
|
|
|
|
}
|