git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit80838029ac4312b378270df363dc17ed54d21eae authorCray Elliott <MP2E@archlinux.us> dateMon 15 Dec 2014, 23:22 (12 years ago) parent51ca7fd
8 files changed+59−27
pkgs/development/mobile/androidenv/androidsdk.nix+5−5 pkgs/development/mobile/androidenv/build-tools.nix+6−6 pkgs/development/mobile/androidenv/default.nix+6 pkgs/development/mobile/androidenv/platform-tools.nix+11−6 pkgs/development/mobile/androidenv/platforms-linux.nix+12−2 pkgs/development/mobile/androidenv/platforms-macosx.nix+12−1 pkgs/development/mobile/androidenv/support-repository.nix+3−3 pkgs/development/mobile/androidenv/support.nix+4−4
pkgs/development/mobile/androidenv/androidsdk.nix+5−5
@@ -9,19 +9,19 @@
99
1010stdenv.mkDerivation rec {
1111 name = "android-sdk-${version}";
12− version = "23.0.2";
13−
12+ version = "24.0.1";
13+
1414 src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
1515 then fetchurl {
1616 url = "http://dl.google.com/android/android-sdk_r${version}-linux.tgz";
17− md5 = "94a8c62086a7398cc0e73e1c8e65f71e";
17+ sha1 = "fb46b9afa04e09d3c33fa9bfee5c99e9ec6a9523";
1818 }
1919 else if stdenv.system == "x86_64-darwin" then fetchurl {
2020 url = "http://dl.google.com/android/android-sdk_r${version}-macosx.zip";
21− md5 = "322787b0e6c629d926c28690c79ac0d8";
21+ sha1 = "7097c09c72645d7ad33c81a37b1a1363a9df2a54";
2222 }
2323 else throw "platform not ${stdenv.system} supported!";
24−
24+
2525 buildCommand = ''
2626 mkdir -p $out/libexec
2727 cd $out/libexec
pkgs/development/mobile/androidenv/build-tools.nix+6−6
@@ -1,18 +1,18 @@
11{stdenv, stdenv_32bit, fetchurl, unzip, zlib_32bit}:
22
33stdenv.mkDerivation {
4− name = "android-build-tools-r20";
4+ name = "android-build-tools-r21.1.2";
55 src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
66 then fetchurl {
7− url = https://dl-ssl.google.com/android/repository/build-tools_r20-linux.zip;
8− sha1 = "b688905526a5584d1327a662d871a635ff502758";
7+ url = https://dl-ssl.google.com/android/repository/build-tools_r21.1.2-linux.zip;
8+ sha1 = "5e35259843bf2926113a38368b08458735479658";
99 }
1010 else if stdenv.system == "x86_64-darwin" then fetchurl {
11− url = https://dl-ssl.google.com/android/repository/build-tools_r20-macosx.zip;
12− sha1 = "1240f629411c108a714c4ddd756937c7fab93f83";
11+ url = https://dl-ssl.google.com/android/repository/build-tools_r21.1.2-macosx.zip;
12+ sha1 = "e7c906b4ba0eea93b32ba36c610dbd6b204bff48";
1313 }
1414 else throw "System ${stdenv.system} not supported!";
15−
15+
1616 buildCommand = ''
1717 mkdir -p $out/build-tools
1818 cd $out/build-tools
pkgs/development/mobile/androidenv/default.nix+6
@@ -128,6 +128,12 @@ rec {
128128 useGoogleAPIs = true;
129129 };
130130
131+ androidsdk_5_0_1 = androidsdk {
132+ platformVersions = [ "21" ];
133+ abiVersions = [ "armeabi-v7a" "x86" ];
134+ useGoogleAPIs = true;
135+ };
136+
131137 androidndk = import ./androidndk.nix {
132138 inherit (pkgs) stdenv fetchurl zlib ncurses p7zip lib makeWrapper;
133139 inherit (pkgs) coreutils file findutils gawk gnugrep gnused jdk which;
pkgs/development/mobile/androidenv/platform-tools.nix+11−6
@@ -1,18 +1,23 @@
11{stdenv, stdenv_32bit, fetchurl, unzip}:
22
3+let
4+ version = "21";
5+
6+in
7+
38stdenv.mkDerivation {
4− name = "android-platform-tools-r19";
9+ name = "android-platform-tools-r${version}";
510 src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
611 then fetchurl {
7− url = https://dl-ssl.google.com/android/repository/platform-tools_r19-linux.zip;
8− sha1 = "66ee37daf8a2a8f1aa8939ccd4093658e30aa49b";
12+ url = "https://dl-ssl.google.com/android/repository/platform-tools_r${version}-linux.zip";
13+ sha256 = "35a1762b355451e000a816d97d9af640ca99ae6c5b5b406a3e680210af8106ad";
914 }
1015 else if stdenv.system == "x86_64-darwin" then fetchurl {
11− url = https://dl-ssl.google.com/android/repository/platform-tools_r19-macosx.zip;
12− sha1 = "69af30f488163dfc3da8cef1bb6cc7e8a6df5681";
16+ url = "https://dl-ssl.google.com/android/repository/platform-tools_r${version}-macosx.zip";
17+ sha256 = "30ae8724da3db772a776d616b4746516f24ae81330e84315a7ce0c49e0b0b3cb";
1318 }
1419 else throw "System ${stdenv.system} not supported!";
15−
20+
1621 buildCommand = ''
1722 mkdir -p $out
1823 cd $out
pkgs/development/mobile/androidenv/platforms-linux.nix+12−2
@@ -229,6 +229,16 @@ in
229229
230230 };
231231 };
232−
232+
233+ platform_21 = buildPlatform {
234+ name = "android-platform-5.0.1";
235+ src = fetchurl {
236+ url = https://dl-ssl.google.com/android/repository/android-21_r02.zip;
237+ sha1 = "53536556059bb29ae82f414fd2e14bc335a4eb4c";
238+ };
239+ meta = {
240+ description = "Android SDK Platform 5.0.1";
241+ };
242+ };
243+
233244}
234−
pkgs/development/mobile/androidenv/platforms-macosx.nix+12−1
@@ -229,6 +229,17 @@ in
229229
230230 };
231231 };
232+
233+ platform_21 = buildPlatform {
234+ name = "android-platform-5.0.1";
235+ src = fetchurl {
236+ url = https://dl-ssl.google.com/android/repository/android-21_r02.zip;
237+ sha1 = "53536556059bb29ae82f414fd2e14bc335a4eb4c";
238+ };
239+ meta = {
240+ description = "Android SDK Platform 5.0.1";
241+ };
242+ };
243+
232244
233245}
234−
pkgs/development/mobile/androidenv/support-repository.nix+3−3
@@ -1,10 +1,10 @@
11{stdenv, fetchurl, unzip}:
22
33stdenv.mkDerivation {
4− name = "android-support-repository-r5";
4+ name = "android-support-repository-r9";
55 src = fetchurl {
6− url = http://dl-ssl.google.com/android/repository/android_m2repository_r05.zip;
7− sha1 = "2ee9723da079ba0d4fe2a185e00ded842de96f13";
6+ url = http://dl-ssl.google.com/android/repository/android_m2repository_r09.zip;
7+ sha256 = "e5295cdbc086251a2904c081038a7f10056359481c66ecff40e59177fd1c753c";
88 };
99
1010 buildCommand = ''
pkgs/development/mobile/androidenv/support.nix+4−4
@@ -1,10 +1,10 @@
11{stdenv, fetchurl, unzip}:
22
33stdenv.mkDerivation {
4− name = "android-support-r18";
4+ name = "android-support-r21";
55 src = fetchurl {
6− url = https://dl-ssl.google.com/android/repository/support_r18.zip;
7− sha1 = "bd67b4b8a6bac629f24c8aea75c3619a26d9a568";
6+ url = https://dl-ssl.google.com/android/repository/support_r21.zip;
7+ sha1 = "f9ef8def5c64f17cd8bc41c5efddd37cb155f0be";
88 };
99
1010 buildCommand = ''
@@ -14,4 +14,4 @@ stdenv.mkDerivation {
1414 '';
1515
1616 buildInputs = [ unzip ];
17−}
17+}