2019-05-13 09:22:29 +00:00
|
|
|
{ config, stdenv, pkgs, target-os, 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-05-13 09:22:29 +00:00
|
|
|
androidPlatform = callPackage ./android.nix { inherit config; };
|
|
|
|
selectedSources =
|
|
|
|
[ status-go ] ++
|
|
|
|
lib.optional platform.targetAndroid androidPlatform;
|
2019-03-25 16:35:01 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
{
|
2019-05-13 09:22:29 +00:00
|
|
|
inherit (androidPlatform) androidComposition;
|
2019-04-11 12:48:53 +00:00
|
|
|
inherit xcodewrapperArgs;
|
|
|
|
|
2019-03-25 16:35:01 +00:00
|
|
|
buildInputs =
|
2019-05-13 09:22:29 +00:00
|
|
|
status-go.buildInputs ++
|
|
|
|
lib.catAttrs "buildInputs" selectedSources ++
|
2019-05-02 18:13:16 +00:00
|
|
|
lib.optional (platform.targetIOS && isDarwin) xcodeWrapper;
|
2019-05-13 09:22:29 +00:00
|
|
|
shellHook = lib.concatStrings (lib.catAttrs "shellHook" selectedSources);
|
2019-03-25 16:35:01 +00:00
|
|
|
}
|