2013-04-16 14:08:37 +02:00
|
|
|
{pkgs, pkgs_i686, version ? "3.1"}:
|
2013-01-07 18:22:10 +01:00
|
|
|
|
2013-04-16 14:08:37 +02: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 18:22:10 +01:00
|
|
|
rec {
|
|
|
|
androidenv = pkgs.androidenv;
|
|
|
|
|
|
|
|
xcodeenv = if pkgs.stdenv.system == "x86_64-darwin" then pkgs.xcodeenv else null;
|
2013-04-16 14:08:37 +02:00
|
|
|
|
|
|
|
titaniumsdk = import titaniumexpr {
|
2013-01-07 18:22:10 +01: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;
|
|
|
|
};
|
|
|
|
}
|