mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 02:56:07 +00:00
a09ff50583
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
28 lines
727 B
Nix
28 lines
727 B
Nix
{ config, stdenv, pkgs, target-os ? "all", status-go }:
|
|
|
|
with pkgs;
|
|
with stdenv;
|
|
|
|
let
|
|
gradle = gradle_4_10;
|
|
platform = pkgs.callPackage ../platform.nix { inherit target-os; };
|
|
xcodewrapperArgs = {
|
|
version = "10.1";
|
|
};
|
|
xcodeWrapper = xcodeenv.composeXcodeWrapper xcodewrapperArgs;
|
|
android = callPackage ./android.nix { inherit config; };
|
|
|
|
in
|
|
{
|
|
inherit (android) androidComposition;
|
|
inherit xcodewrapperArgs;
|
|
|
|
buildInputs =
|
|
status-go.packages ++
|
|
lib.optionals platform.targetAndroid android.buildInputs ++
|
|
lib.optional (platform.targetIOS && isDarwin) xcodeWrapper;
|
|
shellHook =
|
|
status-go.shellHook +
|
|
lib.optionalString platform.targetAndroid android.shellHook;
|
|
}
|