2017-01-25 16:56:55 +01:00
|
|
|
{pkgs, pkgs_i686, xcodeVersion ? "8.2.1", xcodeBaseDir ? "/Applications/Xcode.app", tiVersion ? "6.0.2.GA"}:
|
2013-01-07 18:22:10 +01:00
|
|
|
|
|
|
|
rec {
|
|
|
|
androidenv = pkgs.androidenv;
|
|
|
|
|
2014-01-13 14:24:48 +01:00
|
|
|
xcodeenv = if pkgs.stdenv.system == "x86_64-darwin" then pkgs.xcodeenv.override {
|
|
|
|
version = xcodeVersion;
|
2014-10-07 18:13:52 +02:00
|
|
|
inherit xcodeBaseDir;
|
2014-01-13 14:24:48 +01:00
|
|
|
} else null;
|
2013-04-16 14:08:37 +02:00
|
|
|
|
2014-02-18 16:34:34 +01:00
|
|
|
titaniumsdk = let
|
2016-01-28 15:39:21 +01:00
|
|
|
titaniumSdkFile = if tiVersion == "5.1.2.GA" then ./titaniumsdk-5.1.nix
|
2016-09-01 15:25:46 +02:00
|
|
|
else if tiVersion == "5.2.3.GA" then ./titaniumsdk-5.2.nix
|
2017-01-24 13:21:52 +01:00
|
|
|
else if tiVersion == "6.0.2.GA" then ./titaniumsdk-6.0.nix
|
2014-02-18 16:34:34 +01:00
|
|
|
else throw "Titanium version not supported: "+tiVersion;
|
|
|
|
in
|
|
|
|
import titaniumSdkFile {
|
|
|
|
inherit (pkgs) stdenv fetchurl unzip makeWrapper python jdk;
|
|
|
|
};
|
2013-01-07 18:22:10 +01:00
|
|
|
|
|
|
|
buildApp = import ./build-app.nix {
|
2016-09-01 15:25:46 +02:00
|
|
|
inherit (pkgs) stdenv python which jdk nodejs;
|
2017-01-24 10:55:29 +01:00
|
|
|
inherit (pkgs.nodePackages_4_x) titanium alloy;
|
2013-01-07 18:22:10 +01:00
|
|
|
inherit (androidenv) androidsdk;
|
|
|
|
inherit (xcodeenv) xcodewrapper;
|
2014-10-14 14:57:11 +02:00
|
|
|
inherit titaniumsdk xcodeBaseDir;
|
2013-01-07 18:22:10 +01:00
|
|
|
};
|
|
|
|
}
|