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