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