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