2019-06-16 12:59:06 -07:00
|
|
|
{pkgs, androidenv, xcodeenv, tiVersion ? "7.1.0.GA"}:
|
2013-01-07 09:22:10 -08:00
|
|
|
|
|
|
|
rec {
|
2014-02-18 07:34:34 -08:00
|
|
|
titaniumsdk = let
|
2018-11-17 14:13:44 -08:00
|
|
|
titaniumSdkFile = if tiVersion == "7.1.0.GA" then ./titaniumsdk-7.1.nix
|
2019-02-04 13:50:36 -08:00
|
|
|
else if tiVersion == "7.5.1.GA" then ./titaniumsdk-7.5.nix
|
2014-02-18 07:34:34 -08:00
|
|
|
else throw "Titanium version not supported: "+tiVersion;
|
|
|
|
in
|
|
|
|
import titaniumSdkFile {
|
2018-11-17 14:13:44 -08:00
|
|
|
inherit (pkgs) stdenv 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 {
|
2018-01-05 03:34:03 -08:00
|
|
|
inherit (pkgs) stdenv python which file jdk nodejs;
|
2019-07-05 03:03:28 -07:00
|
|
|
inherit (pkgs.nodePackages_10_x) 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
|
|
|
};
|
|
|
|
}
|