2019-05-22 16:04:45 +00:00
|
|
|
{ config, stdenv, pkgs, callPackage, target-os,
|
|
|
|
gradle, status-go, composeXcodeWrapper, nodejs }:
|
2019-03-25 16:35:01 +00:00
|
|
|
|
|
|
|
with stdenv;
|
|
|
|
|
|
|
|
let
|
2019-05-17 08:55:24 +00:00
|
|
|
platform = callPackage ../platform.nix { inherit target-os; };
|
2019-04-11 12:48:53 +00:00
|
|
|
xcodewrapperArgs = {
|
|
|
|
version = "10.1";
|
|
|
|
};
|
2019-05-17 08:55:24 +00:00
|
|
|
xcodeWrapper = composeXcodeWrapper xcodewrapperArgs;
|
|
|
|
androidPlatform = callPackage ./android.nix { inherit config gradle; };
|
2019-05-13 09:22:29 +00:00
|
|
|
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
|
|
|
}
|