28 lines
785 B
Nix
28 lines
785 B
Nix
{ config, stdenv, callPackage, target-os,
|
|
gradle, status-go, composeXcodeWrapper }:
|
|
|
|
with stdenv;
|
|
|
|
let
|
|
platform = callPackage ../platform.nix { inherit target-os; };
|
|
xcodewrapperArgs = {
|
|
version = "10.1";
|
|
};
|
|
xcodeWrapper = composeXcodeWrapper xcodewrapperArgs;
|
|
androidPlatform = callPackage ./android.nix { inherit config gradle; };
|
|
selectedSources =
|
|
[ status-go ] ++
|
|
lib.optional platform.targetAndroid androidPlatform;
|
|
|
|
in
|
|
{
|
|
inherit (androidPlatform) androidComposition;
|
|
inherit xcodewrapperArgs;
|
|
|
|
buildInputs =
|
|
status-go.buildInputs ++
|
|
lib.catAttrs "buildInputs" selectedSources ++
|
|
lib.optional (platform.targetIOS && isDarwin) xcodeWrapper;
|
|
shellHook = lib.concatStrings (lib.catAttrs "shellHook" selectedSources);
|
|
}
|