titaniumsdk: fix to make it work with new android SDK and NPM packages + add titaniumsdk version 5.2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{pkgs, pkgs_i686, xcodeVersion ? "7.2", xcodeBaseDir ? "/Applications/Xcode.app", tiVersion ? "5.1.2.GA"}:
|
||||
{pkgs, pkgs_i686, xcodeVersion ? "7.2", xcodeBaseDir ? "/Applications/Xcode.app", tiVersion ? "5.2.3.GA"}:
|
||||
|
||||
rec {
|
||||
androidenv = pkgs.androidenv;
|
||||
@@ -10,6 +10,7 @@ rec {
|
||||
|
||||
titaniumsdk = let
|
||||
titaniumSdkFile = if tiVersion == "5.1.2.GA" then ./titaniumsdk-5.1.nix
|
||||
else if tiVersion == "5.2.3.GA" then ./titaniumsdk-5.2.nix
|
||||
else throw "Titanium version not supported: "+tiVersion;
|
||||
in
|
||||
import titaniumSdkFile {
|
||||
@@ -17,8 +18,8 @@ rec {
|
||||
};
|
||||
|
||||
buildApp = import ./build-app.nix {
|
||||
inherit (pkgs) stdenv python which jdk;
|
||||
titanium = (import ./cli { inherit (pkgs.stdenv) system; }).titanium {};
|
||||
inherit (pkgs) stdenv python which jdk nodejs;
|
||||
inherit (pkgs.nodePackages) titanium alloy;
|
||||
inherit (androidenv) androidsdk;
|
||||
inherit (xcodeenv) xcodewrapper;
|
||||
inherit titaniumsdk xcodeBaseDir;
|
||||
|
||||
Reference in New Issue
Block a user