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" ]
|
2014-01-13 13:34:46 +00:00
|
|
|
, xcodeVersion ? "5.0"
|
2014-03-12 11:04:38 +00:00
|
|
|
, tiVersion ? "3.2.2.GA"
|
2014-01-15 12:37:40 +00:00
|
|
|
, rename ? false
|
|
|
|
, newBundleId ? "com.example.kitchensink", iosMobileProvisioningProfile ? null, iosCertificate ? null, iosCertificateName ? "Example", iosCertificatePassword ? ""
|
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-01-13 13:15:05 +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
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
2014-01-15 12:37:40 +00:00
|
|
|
import ./kitchensink {
|
|
|
|
inherit (pkgs) fetchgit;
|
2014-02-18 15:34:34 +00:00
|
|
|
titaniumenv = pkgs.titaniumenv.override { inherit xcodeVersion tiVersion; };
|
|
|
|
inherit tiVersion;
|
2014-01-15 12:37:40 +00:00
|
|
|
target = "android";
|
|
|
|
});
|
|
|
|
|
|
|
|
kitchensink_android_release = pkgs.lib.genAttrs systems (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
import ./kitchensink {
|
|
|
|
inherit (pkgs) fetchgit;
|
2014-02-18 15:34:34 +00:00
|
|
|
titaniumenv = pkgs.titaniumenv.override { inherit xcodeVersion tiVersion; };
|
|
|
|
inherit tiVersion;
|
2014-01-15 12:37:40 +00:00
|
|
|
target = "android";
|
|
|
|
release = true;
|
|
|
|
});
|
|
|
|
|
|
|
|
emulate_kitchensink_debug = pkgs.lib.genAttrs systems (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
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
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
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-02-18 15:34:34 +00:00
|
|
|
titaniumenv = pkgs.titaniumenv.override { inherit xcodeVersion tiVersion; };
|
|
|
|
inherit tiVersion;
|
2014-01-15 12:37:40 +00:00
|
|
|
target = "iphone";
|
|
|
|
};
|
|
|
|
|
|
|
|
simulate_kitchensink_iphone = import ./simulate-kitchensink {
|
|
|
|
inherit (pkgs) stdenv;
|
|
|
|
xcodeenv = pkgs.xcodeenv.override { version = xcodeVersion; };
|
|
|
|
kitchensink = kitchensink_ios_development;
|
|
|
|
device = "iPhone";
|
|
|
|
};
|
|
|
|
|
|
|
|
simulate_kitchensink_ipad = import ./simulate-kitchensink {
|
|
|
|
inherit (pkgs) stdenv;
|
|
|
|
xcodeenv = pkgs.xcodeenv.override { version = xcodeVersion; };
|
|
|
|
kitchensink = kitchensink_ios_development;
|
|
|
|
device = "iPad";
|
|
|
|
};
|
|
|
|
} else {}) // (if rename then
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { system = "x86_64-darwin"; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
kitchensink_ipa = import ./kitchensink {
|
|
|
|
inherit (pkgs) stdenv fetchgit;
|
2014-02-18 15:34:34 +00:00
|
|
|
titaniumenv = pkgs.titaniumenv.override { inherit xcodeVersion 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;
|
|
|
|
inherit newBundleId iosMobileProvisioningProfile iosCertificate iosCertificateName iosCertificatePassword;
|
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 {})
|