2020-03-01 10:02:21 -08:00
|
|
|
{pkgs, androidenv, xcodeenv, tiVersion ? "8.3.2.GA"}:
|
2013-01-07 09:22:10 -08:00
|
|
|
|
|
|
|
rec {
|
2014-02-18 07:34:34 -08:00
|
|
|
titaniumsdk = let
|
2019-11-10 23:50:05 -08:00
|
|
|
titaniumSdkFile = if tiVersion == "8.2.1.GA" then ./titaniumsdk-8.2.nix
|
2019-02-04 13:50:36 -08:00
|
|
|
else if tiVersion == "7.5.1.GA" then ./titaniumsdk-7.5.nix
|
2020-03-01 10:02:21 -08:00
|
|
|
else if tiVersion == "8.3.2.GA" then ./titaniumsdk-8.3.nix
|
2014-02-18 07:34:34 -08:00
|
|
|
else throw "Titanium version not supported: "+tiVersion;
|
|
|
|
in
|
|
|
|
import titaniumSdkFile {
|
2021-01-17 09:28:51 -08:00
|
|
|
inherit (pkgs) stdenv lib fetchurl unzip makeWrapper;
|
2014-02-18 07:34:34 -08:00
|
|
|
};
|
2018-11-17 14:13:44 -08:00
|
|
|
|
2013-01-07 09:22:10 -08:00
|
|
|
buildApp = import ./build-app.nix {
|
2021-01-17 09:28:51 -08:00
|
|
|
inherit (pkgs) stdenv lib python which file jdk nodejs;
|
2020-04-22 04:26:33 -07:00
|
|
|
inherit (pkgs.nodePackages) alloy titanium;
|
2018-11-17 14:13:44 -08:00
|
|
|
inherit (androidenv) composeAndroidPackages;
|
|
|
|
inherit (xcodeenv) composeXcodeWrapper;
|
|
|
|
inherit titaniumsdk;
|
2013-01-07 09:22:10 -08:00
|
|
|
};
|
|
|
|
}
|