titaniumenv: add 6.0 SDK + bump kitchensink testcase
This commit is contained in:
parent
a82810c7a7
commit
de9a4f5fb4
@ -1,4 +1,4 @@
|
||||
{pkgs, pkgs_i686, xcodeVersion ? "7.2", xcodeBaseDir ? "/Applications/Xcode.app", tiVersion ? "5.2.3.GA"}:
|
||||
{pkgs, pkgs_i686, xcodeVersion ? "7.2", xcodeBaseDir ? "/Applications/Xcode.app", tiVersion ? "6.0.2.GA"}:
|
||||
|
||||
rec {
|
||||
androidenv = pkgs.androidenv;
|
||||
@ -11,6 +11,7 @@ rec {
|
||||
titaniumsdk = let
|
||||
titaniumSdkFile = if tiVersion == "5.1.2.GA" then ./titaniumsdk-5.1.nix
|
||||
else if tiVersion == "5.2.3.GA" then ./titaniumsdk-5.2.nix
|
||||
else if tiVersion == "6.0.2.GA" then ./titaniumsdk-6.0.nix
|
||||
else throw "Titanium version not supported: "+tiVersion;
|
||||
in
|
||||
import titaniumSdkFile {
|
||||
|
@ -2,7 +2,7 @@
|
||||
, systems ? [ "x86_64-linux" "x86_64-darwin" ]
|
||||
, xcodeVersion ? "7.2"
|
||||
, xcodeBaseDir ? "/Applications/Xcode.app"
|
||||
, tiVersion ? "5.1.2.GA"
|
||||
, tiVersion ? "6.0.2.GA"
|
||||
, rename ? false
|
||||
, newBundleId ? "com.example.kitchensink", iosMobileProvisioningProfile ? null, iosCertificate ? null, iosCertificateName ? "Example", iosCertificatePassword ? "", iosVersion ? "9.2"
|
||||
, enableWirelessDistribution ? false, installURL ? null
|
||||
|
@ -8,8 +8,8 @@ assert rename -> (stdenv != null && newBundleId != null && iosMobileProvisioning
|
||||
let
|
||||
src = fetchgit {
|
||||
url = https://github.com/appcelerator/KitchenSink.git;
|
||||
rev = "6e9f509069fafdebfa78e15b2d14f20a27a485cc";
|
||||
sha256 = "049cf0d9y0ivhsi35slx621z0wry4lqf76hw0ksb315i2713v347";
|
||||
rev = "ec9edebf35030f61368000a8a9071dd7a0773884";
|
||||
sha256 = "1j41w4nhcbl40x550pjgabqrach80f9dybv7ya32771wnw2000iy";
|
||||
};
|
||||
|
||||
# Rename the bundle id to something else
|
||||
|
39
pkgs/development/mobile/titaniumenv/titaniumsdk-6.0.nix
Normal file
39
pkgs/development/mobile/titaniumenv/titaniumsdk-6.0.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{stdenv, fetchurl, unzip, makeWrapper, python, jdk}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "mobilesdk-6.0.2.GA";
|
||||
src = if (stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux") then fetchurl {
|
||||
url = http://builds.appcelerator.com/mobile/6_0_X/mobilesdk-6.0.2.v20170123140026-linux.zip;
|
||||
sha256 = "1yjhr4fgjnxfxzwmgw71yynrfzhsjqj2cirjr5rd14zlp4q9751q";
|
||||
}
|
||||
else if stdenv.system == "x86_64-darwin" then fetchurl {
|
||||
url = http://builds.appcelerator.com/mobile/6_0_X/mobilesdk-6.0.2.v20170123140026-osx.zip;
|
||||
sha256 = "1ijd1wp56ygy238xpcffy112akim208wbv5zm901dvych83ibw1c";
|
||||
}
|
||||
else throw "Platform: ${stdenv.system} not supported!";
|
||||
|
||||
buildInputs = [ unzip makeWrapper ];
|
||||
|
||||
buildCommand = ''
|
||||
mkdir -p $out
|
||||
cd $out
|
||||
(yes y | unzip $src) || true
|
||||
|
||||
# Rename ugly version number
|
||||
cd mobilesdk/*
|
||||
mv * 6.0.2.GA
|
||||
cd *
|
||||
|
||||
# Patch some executables
|
||||
|
||||
${if stdenv.system == "i686-linux" then
|
||||
''
|
||||
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux.so.2 android/titanium_prep.linux32
|
||||
''
|
||||
else if stdenv.system == "x86_64-linux" then
|
||||
''
|
||||
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 android/titanium_prep.linux64
|
||||
''
|
||||
else ""}
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user