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