status-react/nix/mobile/default.nix
Pedro Pombeiro 79db8e5107
Upgrade Xcode requirement to 10.2.1
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2019-06-13 15:03:58 +02:00

28 lines
801 B
Nix

{ config, stdenv, pkgs, callPackage, target-os,
gradle, status-go, composeXcodeWrapper, nodejs }:
with stdenv;
let
platform = callPackage ../platform.nix { inherit target-os; };
xcodewrapperArgs = {
version = "10.2.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);
}