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

22 lines
725 B
Nix
Raw Normal View History

2020-03-01 18:02:21 +00:00
{pkgs, androidenv, xcodeenv, tiVersion ? "8.3.2.GA"}:
rec {
2014-02-18 15:34:34 +00:00
titaniumsdk = let
titaniumSdkFile = if tiVersion == "8.2.1.GA" then ./titaniumsdk-8.2.nix
else if tiVersion == "7.5.1.GA" then ./titaniumsdk-7.5.nix
2020-03-01 18:02:21 +00:00
else if tiVersion == "8.3.2.GA" then ./titaniumsdk-8.3.nix
2014-02-18 15:34:34 +00:00
else throw "Titanium version not supported: "+tiVersion;
in
import titaniumSdkFile {
inherit (pkgs) stdenv lib fetchurl unzip makeWrapper;
2014-02-18 15:34:34 +00:00
};
buildApp = import ./build-app.nix {
inherit (pkgs) stdenv lib python which file jdk nodejs;
inherit (pkgs.nodePackages) alloy titanium;
inherit (androidenv) composeAndroidPackages;
inherit (xcodeenv) composeXcodeWrapper;
inherit titaniumsdk;
};
}