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" ]
|
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-13 13:15:05 +00:00
|
|
|
kitchensink_android = pkgs.lib.genAttrs systems (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
import ./kitchensink {
|
|
|
|
inherit (pkgs) fetchgit titaniumenv;
|
|
|
|
target = "android";
|
|
|
|
});
|
2013-01-07 17:22:10 +00:00
|
|
|
|
2014-01-13 13:15:05 +00:00
|
|
|
emulate_kitchensink = pkgs.lib.genAttrs systems (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
import ./emulate-kitchensink {
|
|
|
|
inherit (pkgs.titaniumenv) androidenv;
|
|
|
|
kitchensink = kitchensink_android;
|
|
|
|
});
|
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 {
|
|
|
|
kitchensink_iphone = import ./kitchensink {
|
|
|
|
inherit (pkgs) fetchgit titaniumenv;
|
|
|
|
target = "iphone";
|
|
|
|
};
|
|
|
|
|
|
|
|
simulate_kitchensink_iphone = import ./simulate-kitchensink {
|
|
|
|
inherit (pkgs) stdenv;
|
|
|
|
inherit (pkgs.titaniumenv) xcodeenv;
|
|
|
|
kitchensink = kitchensink_iphone;
|
|
|
|
device = "iPhone";
|
|
|
|
};
|
2013-01-07 17:22:10 +00:00
|
|
|
|
2014-01-13 13:15:05 +00:00
|
|
|
simulate_kitchensink_ipad = import ./simulate-kitchensink {
|
|
|
|
inherit (pkgs) stdenv;
|
|
|
|
inherit (pkgs.titaniumenv) xcodeenv;
|
|
|
|
kitchensink = kitchensink_iphone;
|
|
|
|
device = "iPad";
|
|
|
|
};
|
|
|
|
} else {})
|