blob: b7b5a048b97876399380e12d73d74ed6d4ba9351 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{pkgs, pkgs_i686, version ? "3.1"}:
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
rec {
androidenv = pkgs.androidenv;
xcodeenv = if pkgs.stdenv.system == "x86_64-darwin" then pkgs.xcodeenv else null;
titaniumsdk = import titaniumexpr {
inherit (pkgs) stdenv fetchurl unzip makeWrapper python jdk;
};
buildApp = import ./build-app.nix {
inherit (pkgs) stdenv;
inherit (androidenv) androidsdk;
inherit (xcodeenv) xcodewrapper;
inherit titaniumsdk;
};
}
|