Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{pkgs, androidenv, xcodeenv, tiVersion ? "8.3.2.GA"}: 2 3rec { 4 titaniumsdk = let 5 titaniumSdkFile = if tiVersion == "8.2.1.GA" then ./titaniumsdk-8.2.nix 6 else if tiVersion == "7.5.1.GA" then ./titaniumsdk-7.5.nix 7 else if tiVersion == "8.3.2.GA" then ./titaniumsdk-8.3.nix 8 else throw "Titanium version not supported: "+tiVersion; 9 in 10 import titaniumSdkFile { 11 inherit (pkgs) stdenv lib fetchurl unzip makeWrapper; 12 }; 13 14 buildApp = import ./build-app.nix { 15 inherit (pkgs) stdenv lib python which file jdk nodejs; 16 inherit (pkgs.nodePackages) alloy titanium; 17 inherit (androidenv) composeAndroidPackages; 18 inherit (xcodeenv) composeXcodeWrapper; 19 inherit titaniumsdk; 20 }; 21}