2019-05-22 18:04:45 +02:00
|
|
|
{ config, stdenv, pkgs, callPackage, target-os,
|
|
|
|
gradle, status-go, composeXcodeWrapper, nodejs }:
|
2019-03-25 17:35:01 +01:00
|
|
|
|
|
|
|
with stdenv;
|
|
|
|
|
|
|
|
let
|
2019-05-17 10:55:24 +02:00
|
|
|
platform = callPackage ../platform.nix { inherit target-os; };
|
2019-04-11 14:48:53 +02:00
|
|
|
xcodewrapperArgs = {
|
2019-06-11 23:20:55 +02:00
|
|
|
version = "10.2.1";
|
2019-04-11 14:48:53 +02:00
|
|
|
};
|
2019-05-17 10:55:24 +02:00
|
|
|
xcodeWrapper = composeXcodeWrapper xcodewrapperArgs;
|
|
|
|
androidPlatform = callPackage ./android.nix { inherit config gradle; };
|
2019-05-13 11:22:29 +02:00
|
|
|
selectedSources =
|
|
|
|
[ status-go ] ++
|
|
|
|
lib.optional platform.targetAndroid androidPlatform;
|
2019-03-25 17:35:01 +01:00
|
|
|
|
|
|
|
in
|
|
|
|
{
|
2019-05-13 11:22:29 +02:00
|
|
|
inherit (androidPlatform) androidComposition;
|
2019-04-11 14:48:53 +02:00
|
|
|
inherit xcodewrapperArgs;
|
|
|
|
|
2019-03-25 17:35:01 +01:00
|
|
|
buildInputs =
|
2019-05-13 11:22:29 +02:00
|
|
|
status-go.buildInputs ++
|
|
|
|
lib.catAttrs "buildInputs" selectedSources ++
|
2019-05-02 20:13:16 +02:00
|
|
|
lib.optional (platform.targetIOS && isDarwin) xcodeWrapper;
|
2019-05-13 11:22:29 +02:00
|
|
|
shellHook = lib.concatStrings (lib.catAttrs "shellHook" selectedSources);
|
2019-03-25 17:35:01 +01:00
|
|
|
}
|