git.iko.soy/typeable/nixpkgs
on master help sign in
Bump Android packages to newest versions, add androidsdk_5_0_1 to env
8083802Cray Elliott
pkgs/development/mobile/androidenv/androidsdk.nix+5−5
@@ -9,19 +9,19 @@
9
9
10stdenv.mkDerivation rec {
10stdenv.mkDerivation rec {
11 name = "android-sdk-${version}";
11 name = "android-sdk-${version}";
12− version = "23.0.2";
12+ version = "24.0.1";
13−
13+
14 src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
14 src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
15 then fetchurl {
15 then fetchurl {
16 url = "http://dl.google.com/android/android-sdk_r${version}-linux.tgz";
16 url = "http://dl.google.com/android/android-sdk_r${version}-linux.tgz";
17− md5 = "94a8c62086a7398cc0e73e1c8e65f71e";
17+ sha1 = "fb46b9afa04e09d3c33fa9bfee5c99e9ec6a9523";
18 }
18 }
19 else if stdenv.system == "x86_64-darwin" then fetchurl {
19 else if stdenv.system == "x86_64-darwin" then fetchurl {
20 url = "http://dl.google.com/android/android-sdk_r${version}-macosx.zip";
20 url = "http://dl.google.com/android/android-sdk_r${version}-macosx.zip";
21− md5 = "322787b0e6c629d926c28690c79ac0d8";
21+ sha1 = "7097c09c72645d7ad33c81a37b1a1363a9df2a54";
22 }
22 }
23 else throw "platform not ${stdenv.system} supported!";
23 else throw "platform not ${stdenv.system} supported!";
24−
24+
25 buildCommand = ''
25 buildCommand = ''
26 mkdir -p $out/libexec
26 mkdir -p $out/libexec
27 cd $out/libexec
27 cd $out/libexec
pkgs/development/mobile/androidenv/build-tools.nix+6−6
@@ -1,18 +1,18 @@
1{stdenv, stdenv_32bit, fetchurl, unzip, zlib_32bit}:
1{stdenv, stdenv_32bit, fetchurl, unzip, zlib_32bit}:
2
2
3stdenv.mkDerivation {
3stdenv.mkDerivation {
4− name = "android-build-tools-r20";
4+ name = "android-build-tools-r21.1.2";
5 src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
5 src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
6 then fetchurl {
6 then fetchurl {
7− url = https://dl-ssl.google.com/android/repository/build-tools_r20-linux.zip;
7+ url = https://dl-ssl.google.com/android/repository/build-tools_r21.1.2-linux.zip;
8− sha1 = "b688905526a5584d1327a662d871a635ff502758";
8+ sha1 = "5e35259843bf2926113a38368b08458735479658";
9 }
9 }
10 else if stdenv.system == "x86_64-darwin" then fetchurl {
10 else if stdenv.system == "x86_64-darwin" then fetchurl {
11− url = https://dl-ssl.google.com/android/repository/build-tools_r20-macosx.zip;
11+ url = https://dl-ssl.google.com/android/repository/build-tools_r21.1.2-macosx.zip;
12− sha1 = "1240f629411c108a714c4ddd756937c7fab93f83";
12+ sha1 = "e7c906b4ba0eea93b32ba36c610dbd6b204bff48";
13 }
13 }
14 else throw "System ${stdenv.system} not supported!";
14 else throw "System ${stdenv.system} not supported!";
15−
15+
16 buildCommand = ''
16 buildCommand = ''
17 mkdir -p $out/build-tools
17 mkdir -p $out/build-tools
18 cd $out/build-tools
18 cd $out/build-tools
pkgs/development/mobile/androidenv/default.nix+6
@@ -128,6 +128,12 @@ rec {
128 useGoogleAPIs = true;
128 useGoogleAPIs = true;
129 };
129 };
130
130
131+ androidsdk_5_0_1 = androidsdk {
132+ platformVersions = [ "21" ];
133+ abiVersions = [ "armeabi-v7a" "x86" ];
134+ useGoogleAPIs = true;
135+ };
136+
131 androidndk = import ./androidndk.nix {
137 androidndk = import ./androidndk.nix {
132 inherit (pkgs) stdenv fetchurl zlib ncurses p7zip lib makeWrapper;
138 inherit (pkgs) stdenv fetchurl zlib ncurses p7zip lib makeWrapper;
133 inherit (pkgs) coreutils file findutils gawk gnugrep gnused jdk which;
139 inherit (pkgs) coreutils file findutils gawk gnugrep gnused jdk which;
pkgs/development/mobile/androidenv/platform-tools.nix+11−6
@@ -1,18 +1,23 @@
1{stdenv, stdenv_32bit, fetchurl, unzip}:
1{stdenv, stdenv_32bit, fetchurl, unzip}:
2
2
3+let
4+ version = "21";
5+
6+in
7+
3stdenv.mkDerivation {
8stdenv.mkDerivation {
4− name = "android-platform-tools-r19";
9+ name = "android-platform-tools-r${version}";
5 src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
10 src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux")
6 then fetchurl {
11 then fetchurl {
7− url = https://dl-ssl.google.com/android/repository/platform-tools_r19-linux.zip;
12+ url = "https://dl-ssl.google.com/android/repository/platform-tools_r${version}-linux.zip";
8− sha1 = "66ee37daf8a2a8f1aa8939ccd4093658e30aa49b";
13+ sha256 = "35a1762b355451e000a816d97d9af640ca99ae6c5b5b406a3e680210af8106ad";
9 }
14 }
10 else if stdenv.system == "x86_64-darwin" then fetchurl {
15 else if stdenv.system == "x86_64-darwin" then fetchurl {
11− url = https://dl-ssl.google.com/android/repository/platform-tools_r19-macosx.zip;
16+ url = "https://dl-ssl.google.com/android/repository/platform-tools_r${version}-macosx.zip";
12− sha1 = "69af30f488163dfc3da8cef1bb6cc7e8a6df5681";
17+ sha256 = "30ae8724da3db772a776d616b4746516f24ae81330e84315a7ce0c49e0b0b3cb";
13 }
18 }
14 else throw "System ${stdenv.system} not supported!";
19 else throw "System ${stdenv.system} not supported!";
15−
20+
16 buildCommand = ''
21 buildCommand = ''
17 mkdir -p $out
22 mkdir -p $out
18 cd $out
23 cd $out
pkgs/development/mobile/androidenv/platforms-linux.nix+12−2
@@ -229,6 +229,16 @@ in
229
229
230 };
230 };
231 };
231 };
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+
233}
244}
234−
pkgs/development/mobile/androidenv/platforms-macosx.nix+12−1
@@ -229,6 +229,17 @@ in
229
229
230 };
230 };
231 };
231 };
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+
232
244
233}
245}
234−
pkgs/development/mobile/androidenv/support-repository.nix+3−3
@@ -1,10 +1,10 @@
1{stdenv, fetchurl, unzip}:
1{stdenv, fetchurl, unzip}:
2
2
3stdenv.mkDerivation {
3stdenv.mkDerivation {
4− name = "android-support-repository-r5";
4+ name = "android-support-repository-r9";
5 src = fetchurl {
5 src = fetchurl {
6− url = http://dl-ssl.google.com/android/repository/android_m2repository_r05.zip;
6+ url = http://dl-ssl.google.com/android/repository/android_m2repository_r09.zip;
7− sha1 = "2ee9723da079ba0d4fe2a185e00ded842de96f13";
7+ sha256 = "e5295cdbc086251a2904c081038a7f10056359481c66ecff40e59177fd1c753c";
8 };
8 };
9
9
10 buildCommand = ''
10 buildCommand = ''
pkgs/development/mobile/androidenv/support.nix+4−4
@@ -1,10 +1,10 @@
1{stdenv, fetchurl, unzip}:
1{stdenv, fetchurl, unzip}:
2
2
3stdenv.mkDerivation {
3stdenv.mkDerivation {
4− name = "android-support-r18";
4+ name = "android-support-r21";
5 src = fetchurl {
5 src = fetchurl {
6− url = https://dl-ssl.google.com/android/repository/support_r18.zip;
6+ url = https://dl-ssl.google.com/android/repository/support_r21.zip;
7− sha1 = "bd67b4b8a6bac629f24c8aea75c3619a26d9a568";
7+ sha1 = "f9ef8def5c64f17cd8bc41c5efddd37cb155f0be";
8 };
8 };
9
9
10 buildCommand = ''
10 buildCommand = ''
@@ -14,4 +14,4 @@ stdenv.mkDerivation {
14 '';
14 '';
15
15
16 buildInputs = [ unzip ];
16 buildInputs = [ unzip ];
17−}
17+}