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