2013-03-13 14:09:13 +00:00
|
|
|
{ nixpkgs ? <nixpkgs>
|
2014-01-13 13:15:05 +00:00
|
|
|
, systems ? [ "x86_64-linux" "x86_64-darwin" ]
|
2017-01-25 15:56:55 +00:00
|
|
|
, xcodeVersion ? "8.2.1"
|
2014-10-07 17:13:52 +01:00
|
|
|
, xcodeBaseDir ? "/Applications/Xcode.app"
|
2017-01-24 12:21:52 +00:00
|
|
|
, tiVersion ? "6.0.2.GA"
|
2014-01-15 12:37:40 +00:00
|
|
|
, rename ? false
|
2017-01-25 15:56:55 +00:00
|
|
|
, newBundleId ? "com.example.kitchensink", iosMobileProvisioningProfile ? null, iosCertificate ? null, iosCertificateName ? "Example", iosCertificatePassword ? "", iosVersion ? "10.2"
|
2014-08-04 10:26:14 +01:00
|
|
|
, enableWirelessDistribution ? false, installURL ? null
|
2013-03-13 14:09:13 +00:00
|
|
|
}:
|
2013-03-05 14:39:51 +00:00
|
|
|
|
2013-01-07 17:22:10 +00:00
|
|
|
let
|
2016-02-01 15:11:28 +00:00
|
|
|
pkgs = import nixpkgs {};
|
2013-01-07 17:22:10 +00:00
|
|
|
in
|
|
|
|
rec {
|
2014-01-15 12:37:40 +00:00
|
|
|
kitchensink_android_debug = pkgs.lib.genAttrs systems (system:
|
2014-01-13 13:15:05 +00:00
|
|
|
let
|
2016-02-01 15:11:28 +00:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2014-01-13 13:15:05 +00:00
|
|
|
in
|
2014-01-15 12:37:40 +00:00
|
|
|
import ./kitchensink {
|
|
|
|
inherit (pkgs) fetchgit;
|
2014-10-07 17:13:52 +01:00
|
|
|
titaniumenv = pkgs.titaniumenv.override { inherit xcodeVersion xcodeBaseDir tiVersion; };
|
2014-02-18 15:34:34 +00:00
|
|
|
inherit tiVersion;
|
2014-01-15 12:37:40 +00:00
|
|
|
target = "android";
|
|
|
|
});
|
|
|
|
|
|
|
|
kitchensink_android_release = pkgs.lib.genAttrs systems (system:
|
|
|
|
let
|
2016-02-01 15:11:28 +00:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2014-01-15 12:37:40 +00:00
|
|
|
in
|
|
|
|
import ./kitchensink {
|
|
|
|
inherit (pkgs) fetchgit;
|
2014-10-07 17:13:52 +01:00
|
|
|
titaniumenv = pkgs.titaniumenv.override { inherit xcodeVersion xcodeBaseDir tiVersion; };
|
2014-02-18 15:34:34 +00:00
|
|
|
inherit tiVersion;
|
2014-01-15 12:37:40 +00:00
|
|
|
target = "android";
|
|
|
|
release = true;
|
|
|
|
});
|
|
|
|
|
|
|
|
emulate_kitchensink_debug = pkgs.lib.genAttrs systems (system:
|
|
|
|
let
|
2016-02-01 15:11:28 +00:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2014-01-15 12:37:40 +00:00
|
|
|
in
|
|
|
|
import ./emulate-kitchensink {
|
|
|
|
inherit (pkgs) androidenv;
|
|
|
|
kitchensink = builtins.getAttr system kitchensink_android_debug;
|
|
|
|
});
|
2013-01-07 17:22:10 +00:00
|
|
|
|
2014-01-15 12:37:40 +00:00
|
|
|
emulate_kitchensink_release = pkgs.lib.genAttrs systems (system:
|
2014-01-13 13:15:05 +00:00
|
|
|
let
|
2016-02-01 15:11:28 +00:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2014-01-13 13:15:05 +00:00
|
|
|
in
|
2014-01-15 12:37:40 +00:00
|
|
|
import ./emulate-kitchensink {
|
|
|
|
inherit (pkgs) androidenv;
|
|
|
|
kitchensink = builtins.getAttr system kitchensink_android_release;
|
|
|
|
});
|
2013-01-07 17:22:10 +00:00
|
|
|
|
2014-01-13 13:15:05 +00:00
|
|
|
} // (if builtins.elem "x86_64-darwin" systems then
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { system = "x86_64-darwin"; };
|
|
|
|
in
|
|
|
|
rec {
|
2014-01-15 12:37:40 +00:00
|
|
|
kitchensink_ios_development = import ./kitchensink {
|
|
|
|
inherit (pkgs) fetchgit;
|
2014-10-07 17:13:52 +01:00
|
|
|
titaniumenv = pkgs.titaniumenv.override { inherit xcodeVersion xcodeBaseDir tiVersion; };
|
2014-10-27 21:55:14 +00:00
|
|
|
inherit tiVersion iosVersion;
|
2014-01-15 12:37:40 +00:00
|
|
|
target = "iphone";
|
|
|
|
};
|
|
|
|
|
2014-10-15 16:28:52 +01:00
|
|
|
simulate_kitchensink = import ./simulate-kitchensink {
|
2014-01-15 12:37:40 +00:00
|
|
|
inherit (pkgs) stdenv;
|
2014-10-07 17:13:52 +01:00
|
|
|
xcodeenv = pkgs.xcodeenv.override { version = xcodeVersion; inherit xcodeBaseDir; };
|
2014-01-15 12:37:40 +00:00
|
|
|
kitchensink = kitchensink_ios_development;
|
2014-10-15 16:28:52 +01:00
|
|
|
bundleId = if rename then newBundleId else "com.appcelerator.kitchensink";
|
2014-01-15 12:37:40 +00:00
|
|
|
};
|
|
|
|
} else {}) // (if rename then
|
|
|
|
let
|
2016-02-01 15:11:28 +00:00
|
|
|
pkgs = import nixpkgs { system = "x86_64-darwin"; };
|
2014-01-15 12:37:40 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
kitchensink_ipa = import ./kitchensink {
|
|
|
|
inherit (pkgs) stdenv fetchgit;
|
2014-10-07 17:13:52 +01:00
|
|
|
titaniumenv = pkgs.titaniumenv.override { inherit xcodeVersion xcodeBaseDir tiVersion; };
|
2014-01-13 13:15:05 +00:00
|
|
|
target = "iphone";
|
2014-02-18 15:34:34 +00:00
|
|
|
inherit tiVersion;
|
2014-01-15 12:37:40 +00:00
|
|
|
release = true;
|
|
|
|
rename = true;
|
2016-01-28 13:32:21 +00:00
|
|
|
inherit newBundleId iosMobileProvisioningProfile iosCertificate iosCertificateName iosCertificatePassword iosVersion;
|
2014-08-04 10:26:14 +01:00
|
|
|
inherit enableWirelessDistribution installURL;
|
2014-01-13 13:15:05 +00:00
|
|
|
};
|
2014-01-15 12:37:40 +00:00
|
|
|
}
|
2013-01-07 17:22:10 +00:00
|
|
|
|
2014-01-15 12:37:40 +00:00
|
|
|
else {})
|