2013-03-13 14:09:13 +00:00
|
|
|
{ nixpkgs ? <nixpkgs>
|
|
|
|
, system ? builtins.currentSystem
|
2013-04-16 12:08:37 +00:00
|
|
|
, version ? "3.1"
|
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
|
2013-03-13 14:09:13 +00:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2013-03-07 09:44:19 +00:00
|
|
|
pkgs_darwin_x86_64 = import nixpkgs { system = "x86_64-darwin"; };
|
2013-04-16 12:08:37 +00:00
|
|
|
versionString = pkgs.stdenv.lib.replaceChars [ "." ] [ "_" ] version;
|
2013-01-07 17:22:10 +00:00
|
|
|
in
|
|
|
|
rec {
|
|
|
|
kitchensink_android = import ./kitchensink {
|
2013-04-16 12:08:37 +00:00
|
|
|
inherit (pkgs) fetchgit;
|
|
|
|
titaniumenv = builtins.getAttr "titaniumenv_${versionString}" pkgs;
|
2013-01-07 17:22:10 +00:00
|
|
|
target = "android";
|
|
|
|
};
|
|
|
|
|
|
|
|
kitchensink_iphone = import ./kitchensink {
|
2013-04-16 12:08:37 +00:00
|
|
|
inherit (pkgs_darwin_x86_64) fetchgit;
|
|
|
|
titaniumenv = builtins.getAttr "titaniumenv_${versionString}" pkgs_darwin_x86_64;
|
2013-01-07 17:22:10 +00:00
|
|
|
target = "iphone";
|
|
|
|
};
|
|
|
|
|
|
|
|
emulate_kitchensink = import ./emulate-kitchensink {
|
2013-03-05 14:57:54 +00:00
|
|
|
inherit (pkgs.titaniumenv) androidenv;
|
2013-01-07 17:22:10 +00:00
|
|
|
kitchensink = kitchensink_android;
|
|
|
|
};
|
|
|
|
|
|
|
|
simulate_kitchensink_iphone = import ./simulate-kitchensink {
|
2013-05-29 11:50:53 +00:00
|
|
|
inherit (pkgs_darwin_x86_64) stdenv;
|
2013-03-07 09:44:19 +00:00
|
|
|
inherit (pkgs_darwin_x86_64.titaniumenv) xcodeenv;
|
2013-01-07 17:22:10 +00:00
|
|
|
kitchensink = kitchensink_iphone;
|
|
|
|
device = "iPhone";
|
|
|
|
};
|
|
|
|
|
|
|
|
simulate_kitchensink_ipad = import ./simulate-kitchensink {
|
2013-05-29 11:50:53 +00:00
|
|
|
inherit (pkgs_darwin_x86_64) stdenv;
|
2013-03-07 09:44:19 +00:00
|
|
|
inherit (pkgs_darwin_x86_64.titaniumenv) xcodeenv;
|
2013-01-07 17:22:10 +00:00
|
|
|
kitchensink = kitchensink_iphone;
|
|
|
|
device = "iPad";
|
|
|
|
};
|
|
|
|
}
|