2019-05-02 20:13:16 +02:00
|
|
|
{ config, stdenv, pkgs, target-os ? "all" }:
|
2019-03-25 17:35:01 +01:00
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
with stdenv;
|
|
|
|
|
|
|
|
let
|
2019-03-29 11:56:08 +01:00
|
|
|
gradle = gradle_4_10;
|
2019-05-02 20:13:16 +02:00
|
|
|
platform = pkgs.callPackage ../platform.nix { inherit target-os; };
|
2019-04-11 14:48:53 +02:00
|
|
|
xcodewrapperArgs = {
|
|
|
|
version = "10.1";
|
|
|
|
};
|
2019-04-03 22:12:31 +02:00
|
|
|
xcodeWrapper = xcodeenv.composeXcodeWrapper xcodewrapperArgs;
|
2019-04-11 14:48:53 +02:00
|
|
|
android = callPackage ./android.nix { inherit config; };
|
2019-03-25 17:35:01 +01:00
|
|
|
|
|
|
|
in
|
|
|
|
{
|
2019-04-11 14:48:53 +02:00
|
|
|
inherit (android) androidComposition;
|
|
|
|
inherit xcodewrapperArgs;
|
|
|
|
|
2019-03-25 17:35:01 +01:00
|
|
|
buildInputs =
|
2019-05-02 20:13:16 +02:00
|
|
|
lib.optional platform.targetAndroid android.buildInputs ++
|
|
|
|
lib.optional (platform.targetIOS && isDarwin) xcodeWrapper;
|
2019-03-25 17:35:01 +01:00
|
|
|
shellHook =
|
2019-05-02 20:13:16 +02:00
|
|
|
lib.optionalString platform.targetAndroid android.shellHook;
|
2019-03-25 17:35:01 +01:00
|
|
|
}
|