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