The emulator needs file in its PATH and alsaLib
This commit is contained in:
parent
7019b685de
commit
f5f5f69ef0
@ -1,9 +1,9 @@
|
||||
{ stdenv, stdenv_32bit, fetchurl, unzip, makeWrapper
|
||||
, platformTools, buildTools, support, platforms, sysimages, addons
|
||||
, zlib_32bit
|
||||
, libX11_32bit, libxcb_32bit, libXau_32bit, libXdmcp_32bit, libXext_32bit, mesa_32bit
|
||||
, libX11, libXext, libXrender, libxcb, libXau, libXdmcp, mesa
|
||||
, freetype, fontconfig, gtk, atk
|
||||
, libX11_32bit, libxcb_32bit, libXau_32bit, libXdmcp_32bit, libXext_32bit, mesa_32bit, alsaLib_32bit
|
||||
, libX11, libXext, libXrender, libxcb, libXau, libXdmcp, mesa, alsaLib
|
||||
, freetype, fontconfig, gtk, atk, file
|
||||
}:
|
||||
{platformVersions, abiVersions, useGoogleAPIs}:
|
||||
|
||||
@ -61,6 +61,7 @@ stdenv.mkDerivation {
|
||||
for i in emulator emulator-arm emulator-mips emulator-x86
|
||||
do
|
||||
wrapProgram `pwd`/$i \
|
||||
--prefix PATH : ${file}/bin \
|
||||
--suffix LD_LIBRARY_PATH : `pwd`/lib:${libX11_32bit}/lib:${libxcb_32bit}/lib:${libXau_32bit}/lib:${libXdmcp_32bit}/lib:${libXext_32bit}/lib:${mesa_32bit}/lib
|
||||
done
|
||||
|
||||
@ -68,7 +69,8 @@ stdenv.mkDerivation {
|
||||
for i in emulator64-arm emulator64-mips emulator64-x86
|
||||
do
|
||||
wrapProgram `pwd`/$i \
|
||||
--suffix LD_LIBRARY_PATH : `pwd`/lib:${libX11}/lib:${libxcb}/lib:${libXau}/lib:${libXdmcp}/lib:${libXext}/lib:${mesa}/lib
|
||||
--prefix PATH : ${file}/bin \
|
||||
--suffix LD_LIBRARY_PATH : `pwd`/lib:${libX11}/lib:${libxcb}/lib:${libXau}/lib:${libXdmcp}/lib:${libXext}/lib:${mesa}/lib:${alsaLib}/lib
|
||||
done
|
||||
''}
|
||||
''}
|
||||
|
@ -36,7 +36,7 @@ rec {
|
||||
|
||||
androidsdk = import ./androidsdk.nix {
|
||||
inherit (pkgs) stdenv fetchurl unzip makeWrapper;
|
||||
inherit (pkgs) freetype fontconfig gtk atk mesa;
|
||||
inherit (pkgs) freetype fontconfig gtk atk mesa file alsaLib;
|
||||
inherit (pkgs.xorg) libX11 libXext libXrender libxcb libXau libXdmcp;
|
||||
|
||||
inherit platformTools buildTools support platforms sysimages addons;
|
||||
@ -49,6 +49,7 @@ rec {
|
||||
libXdmcp_32bit = pkgs_i686.xorg.libXdmcp;
|
||||
libXext_32bit = pkgs_i686.xorg.libXext;
|
||||
mesa_32bit = pkgs_i686.mesa;
|
||||
alsaLib_32bit = pkgs_i686.alsaLib;
|
||||
};
|
||||
|
||||
androidsdk_4_1 = androidsdk {
|
||||
|
Loading…
Reference in New Issue
Block a user