2013-04-16 12:08:37 +00:00
|
|
|
{pkgs, pkgs_i686, version ? "3.1"}:
|
2013-01-07 17:22:10 +00:00
|
|
|
|
2013-04-16 12:08:37 +00:00
|
|
|
let
|
|
|
|
titaniumexpr = if version == "2.1" then
|
|
|
|
./titaniumsdk-2.1.nix
|
|
|
|
else if version == "3.1" then
|
|
|
|
./titaniumsdk.nix
|
|
|
|
else
|
|
|
|
throw "Unknown Titanium SDK version: ${version}";
|
|
|
|
in
|
2013-01-07 17:22:10 +00:00
|
|
|
rec {
|
|
|
|
androidenv = pkgs.androidenv;
|
|
|
|
|
|
|
|
xcodeenv = if pkgs.stdenv.system == "x86_64-darwin" then pkgs.xcodeenv else null;
|
2013-04-16 12:08:37 +00:00
|
|
|
|
|
|
|
titaniumsdk = import titaniumexpr {
|
2013-01-07 17:22:10 +00:00
|
|
|
inherit (pkgs) stdenv fetchurl unzip makeWrapper python jdk;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildApp = import ./build-app.nix {
|
|
|
|
inherit (pkgs) stdenv;
|
|
|
|
inherit (androidenv) androidsdk;
|
|
|
|
inherit (xcodeenv) xcodewrapper;
|
|
|
|
inherit titaniumsdk;
|
|
|
|
};
|
|
|
|
}
|