Bump Android packages to newest versions, add androidsdk_5_0_1 to env

Detailed changes:
- android-sdk: update 23.0.2 -> 24.0.1
- android-platforms: add 5.0.1
- android-platform-tools: update 19 -> 21
- android-build-tools: update 20 -> 21.1.2
- android-support: update 18 -> 21
- android-support-repository: update 5 -> 9

This commit was authored by ewemoa, reviewed by me
This commit is contained in:
Cray Elliott
2014-12-15 23:29:02 -08:00
parent 51ca7fdf0b
commit 80838029ac
8 changed files with 59 additions and 27 deletions
@@ -1,18 +1,23 @@
{stdenv, stdenv_32bit, fetchurl, unzip}:
let
version = "21";
in
stdenv.mkDerivation {
name = "android-platform-tools-r19";
name = "android-platform-tools-r${version}";
src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
then fetchurl {
url = https://dl-ssl.google.com/android/repository/platform-tools_r19-linux.zip;
sha1 = "66ee37daf8a2a8f1aa8939ccd4093658e30aa49b";
url = "https://dl-ssl.google.com/android/repository/platform-tools_r${version}-linux.zip";
sha256 = "35a1762b355451e000a816d97d9af640ca99ae6c5b5b406a3e680210af8106ad";
}
else if stdenv.system == "x86_64-darwin" then fetchurl {
url = https://dl-ssl.google.com/android/repository/platform-tools_r19-macosx.zip;
sha1 = "69af30f488163dfc3da8cef1bb6cc7e8a6df5681";
url = "https://dl-ssl.google.com/android/repository/platform-tools_r${version}-macosx.zip";
sha256 = "30ae8724da3db772a776d616b4746516f24ae81330e84315a7ce0c49e0b0b3cb";
}
else throw "System ${stdenv.system} not supported!";
buildCommand = ''
mkdir -p $out
cd $out