3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/mobile/titaniumenv/default.nix

21 lines
656 B
Nix
Raw Normal View History

{pkgs, androidenv, xcodeenv, tiVersion ? "7.1.0.GA"}:
rec {
2014-02-18 15:34:34 +00:00
titaniumsdk = let
titaniumSdkFile = if tiVersion == "7.1.0.GA" then ./titaniumsdk-7.1.nix
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 {
inherit (pkgs) stdenv fetchurl unzip makeWrapper;
2014-02-18 15:34:34 +00:00
};
buildApp = import ./build-app.nix {
inherit (pkgs) stdenv python which file jdk nodejs;
inherit (pkgs.nodePackages_8_x) alloy titanium;
inherit (androidenv) composeAndroidPackages;
inherit (xcodeenv) composeXcodeWrapper;
inherit titaniumsdk;
};
}