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" ]
|
2016-01-07 13:47:26 +00:00
|
|
|
, xcodeVersion ? "7.2"
|
2014-10-07 17:13:52 +01:00
|
|
|
, xcodeBaseDir ? "/Applications/Xcode.app"
|
2016-01-07 13:47:26 +00:00
|
|
|
, tiVersion ? "5.1.1.GA"
|
2014-01-15 12:37:40 +00:00
|
|
|
, rename ? false
|
2016-01-07 13:47:26 +00:00
|
|
|
, newBundleId ? "com.example.kitchensink", iosMobileProvisioningProfile ? null, iosCertificate ? null, iosCertificateName ? "Example", iosCertificatePassword ? "", iosVersion ? "9.2", iosWwdrCertificate ? null
|
2014-04-18 19:05:39 +01:00
|
|
|
, allowUnfree ? false
|
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
|
2014-04-18 19:05:39 +01:00
|
|
|
pkgs = import nixpkgs { config.allowUnfree = allowUnfree; };
|
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
|
2014-04-18 19:05:39 +01:00
|
|
|
pkgs = import nixpkgs { inherit system; config.allowUnfree = allowUnfree; };
|
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
|
2014-04-18 19:05:39 +01:00
|
|
|
pkgs = import nixpkgs { inherit system; config.allowUnfree = allowUnfree; };
|
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
|
2014-04-18 19:05:39 +01:00
|
|
|
pkgs = import nixpkgs { inherit system; config.allowUnfree = allowUnfree; };
|
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
|
2014-04-18 19:05:39 +01:00
|
|
|
pkgs = import nixpkgs { inherit system; config.allowUnfree = allowUnfree; };
|
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
|
2014-04-18 19:05:39 +01:00
|
|
|
pkgs = import nixpkgs { system = "x86_64-darwin"; config.allowUnfree = allowUnfree; };
|
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;
|
2014-10-28 10:40:12 +00:00
|
|
|
inherit newBundleId iosMobileProvisioningProfile iosCertificate iosCertificateName iosCertificatePassword iosVersion iosWwdrCertificate;
|
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 {})
|