ewemoa : add the Android Support repository

This commit is contained in:
Cray Elliott 2014-08-01 18:26:21 -07:00 committed by Sander van der Burg
parent 3b0c725255
commit c8871e0b65
3 changed files with 32 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{ stdenv, stdenv_32bit, fetchurl, unzip, makeWrapper
, platformTools, buildTools, support, platforms, sysimages, addons
, platformTools, buildTools, support, supportRepository, platforms, sysimages, addons
, zlib_32bit
, libX11_32bit, libxcb_32bit, libXau_32bit, libXdmcp_32bit, libXext_32bit, mesa_32bit, alsaLib_32bit
, libX11, libXext, libXrender, libxcb, libXau, libXdmcp, libXtst, mesa, alsaLib
@ -139,6 +139,15 @@ stdenv.mkDerivation rec {
cd ..
# Symlink required extras
mkdir -p extras/android
cd extras/android
ln -s ${supportRepository}/m2repository
cd ../..
# Symlink required platforms
mkdir -p platforms

View file

@ -16,6 +16,10 @@ rec {
inherit (pkgs) stdenv fetchurl unzip;
};
supportRepository = import ./support-repository.nix {
inherit (pkgs) stdenv fetchurl unzip;
};
platforms = if (pkgs.stdenv.system == "i686-linux" || pkgs.stdenv.system == "x86_64-linux")
then import ./platforms-linux.nix {
inherit (pkgs) stdenv fetchurl unzip;
@ -39,7 +43,7 @@ rec {
inherit (pkgs) freetype fontconfig glib gtk atk mesa file alsaLib jdk;
inherit (pkgs.xorg) libX11 libXext libXrender libxcb libXau libXdmcp libXtst;
inherit platformTools buildTools support platforms sysimages addons;
inherit platformTools buildTools support supportRepository platforms sysimages addons;
stdenv_32bit = pkgs_i686.stdenv;
zlib_32bit = pkgs_i686.zlib;

View file

@ -0,0 +1,17 @@
{stdenv, fetchurl, unzip}:
stdenv.mkDerivation {
name = "android-support-repository-r5";
src = fetchurl {
url = http://dl-ssl.google.com/android/repository/android_m2repository_r05.zip;
sha1 = "2ee9723da079ba0d4fe2a185e00ded842de96f13";
};
buildCommand = ''
mkdir -p $out
cd $out
unzip $src
'';
buildInputs = [ unzip ];
}