2012-11-07 21:10:39 +01:00
|
|
|
{pkgs, pkgs_i686}:
|
|
|
|
|
|
|
|
rec {
|
|
|
|
platformTools = import ./platform-tools.nix {
|
2012-11-08 16:49:36 +01:00
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
2012-11-07 21:10:39 +01:00
|
|
|
stdenv_32bit = pkgs_i686.stdenv;
|
|
|
|
};
|
|
|
|
|
2013-07-31 16:00:57 +02:00
|
|
|
buildTools = import ./build-tools.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
|
|
|
stdenv_32bit = pkgs_i686.stdenv;
|
|
|
|
zlib_32bit = pkgs_i686.zlib;
|
|
|
|
};
|
|
|
|
|
2012-11-07 21:10:39 +01:00
|
|
|
support = import ./support.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;
|
|
|
|
}
|
|
|
|
else if pkgs.stdenv.system == "x86_64-darwin"
|
|
|
|
then import ./platforms-macosx.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
|
|
|
}
|
|
|
|
else throw "Platform: ${pkgs.stdenv.system} not supported!";
|
|
|
|
|
|
|
|
sysimages = import ./sysimages.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
|
|
|
};
|
|
|
|
|
|
|
|
addons = import ./addons.nix {
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip;
|
|
|
|
};
|
|
|
|
|
|
|
|
androidsdk = import ./androidsdk.nix {
|
2012-11-08 16:49:36 +01:00
|
|
|
inherit (pkgs) stdenv fetchurl unzip makeWrapper;
|
2013-07-31 16:00:57 +02:00
|
|
|
inherit (pkgs) freetype fontconfig gtk atk mesa;
|
2012-12-20 14:04:52 +01:00
|
|
|
inherit (pkgs.xorg) libX11 libXext libXrender libxcb libXau libXdmcp;
|
2012-11-07 21:10:39 +01:00
|
|
|
|
2013-07-31 16:00:57 +02:00
|
|
|
inherit platformTools buildTools support platforms sysimages addons;
|
2012-11-07 21:10:39 +01:00
|
|
|
|
|
|
|
stdenv_32bit = pkgs_i686.stdenv;
|
|
|
|
zlib_32bit = pkgs_i686.zlib;
|
|
|
|
libX11_32bit = pkgs_i686.xorg.libX11;
|
|
|
|
libxcb_32bit = pkgs_i686.xorg.libxcb;
|
|
|
|
libXau_32bit = pkgs_i686.xorg.libXau;
|
|
|
|
libXdmcp_32bit = pkgs_i686.xorg.libXdmcp;
|
|
|
|
libXext_32bit = pkgs_i686.xorg.libXext;
|
2013-07-31 16:00:57 +02:00
|
|
|
mesa_32bit = pkgs_i686.mesa;
|
2012-11-07 21:10:39 +01:00
|
|
|
};
|
|
|
|
|
2012-11-08 13:55:53 +01:00
|
|
|
androidsdk_4_1 = androidsdk {
|
|
|
|
platformVersions = [ "16" ];
|
2013-07-31 18:56:27 +02:00
|
|
|
abiVersions = [ "armeabi-v7a" ];
|
2012-11-08 13:55:53 +01:00
|
|
|
useGoogleAPIs = true;
|
|
|
|
};
|
|
|
|
|
2012-11-07 21:10:39 +01:00
|
|
|
buildApp = import ./build-app.nix {
|
|
|
|
inherit (pkgs) stdenv jdk ant;
|
|
|
|
inherit androidsdk;
|
|
|
|
};
|
|
|
|
|
|
|
|
emulateApp = import ./emulate-app.nix {
|
|
|
|
inherit (pkgs) stdenv;
|
|
|
|
inherit androidsdk;
|
|
|
|
};
|
|
|
|
}
|