nixpkgs/pkgs/development/mobile/titaniumenv/default.nix

21 lines
657 B
Nix
Raw Normal View History

{pkgs, androidenv, xcodeenv, tiVersion ? "7.1.0.GA"}:
rec {
2014-02-18 16:34:34 +01: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 16:34:34 +01:00
else throw "Titanium version not supported: "+tiVersion;
in
import titaniumSdkFile {
inherit (pkgs) stdenv fetchurl unzip makeWrapper;
2014-02-18 16:34:34 +01:00
};
buildApp = import ./build-app.nix {
inherit (pkgs) stdenv python which file jdk nodejs;
inherit (pkgs.nodePackages_10_x) alloy titanium;
inherit (androidenv) composeAndroidPackages;
inherit (xcodeenv) composeXcodeWrapper;
inherit titaniumsdk;
};
}