nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{pkgs, pkgs_i686, xcodeVersion ? "8.2.1", xcodeBaseDir ? "/Applications/Xcode.app", tiVersion ? "6.0.2.GA"}:
2
3rec {
4 androidenv = pkgs.androidenv;
5
6 xcodeenv = if pkgs.stdenv.system == "x86_64-darwin" then pkgs.xcodeenv.override {
7 version = xcodeVersion;
8 inherit xcodeBaseDir;
9 } else null;
10
11 titaniumsdk = let
12 titaniumSdkFile = if tiVersion == "5.1.2.GA" then ./titaniumsdk-5.1.nix
13 else if tiVersion == "5.2.3.GA" then ./titaniumsdk-5.2.nix
14 else if tiVersion == "6.0.2.GA" then ./titaniumsdk-6.0.nix
15 else throw "Titanium version not supported: "+tiVersion;
16 in
17 import titaniumSdkFile {
18 inherit (pkgs) stdenv fetchurl unzip makeWrapper python jdk;
19 };
20
21 buildApp = import ./build-app.nix {
22 inherit (pkgs) stdenv python which jdk nodejs;
23 inherit (pkgs.nodePackages_4_x) titanium alloy;
24 inherit (androidenv) androidsdk;
25 inherit (xcodeenv) xcodewrapper;
26 inherit titaniumsdk xcodeBaseDir;
27 };
28}