mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
ewemoa : add the Android Support repository
This commit is contained in:
parent
3b0c725255
commit
c8871e0b65
@ -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
|
||||
|
@ -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;
|
||||
|
17
pkgs/development/mobile/androidenv/support-repository.nix
Normal file
17
pkgs/development/mobile/androidenv/support-repository.nix
Normal 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 ];
|
||||
}
|
Loading…
Reference in New Issue
Block a user