mirror of
https://github.com/status-im/status-react.git
synced 2025-01-13 12:36:11 +00:00
Jakub Sokołowski
b32dd113f6
Also: - upgrade Go: 1.12 > 1.13 - upgrade Android SDK: 28.0.3 > 29.0.2 - nix: stop using system Fastlane for iOS builds - nix: include CocoaPods in shell for iOS - nix: concatenate shellHooks correctly - fix gomobile status-go build by setting GO111MODULE=off - fix gradle accepting empty STATUS_GO_SRC_OVERRIDE value - don't use a pure shell for uploadToSauceLabs() Signed-off-by: Jakub Sokołowski <jakub@status.im>
35 lines
893 B
Nix
35 lines
893 B
Nix
{ stdenv, target-os, callPackage, mkShell, makeWrapper,
|
|
bundlerEnv, bundler, ruby, curl }:
|
|
|
|
let
|
|
inherit (stdenv.lib) optionals optionalString unique;
|
|
|
|
platform = callPackage ../../platform.nix { inherit target-os; };
|
|
fastlane = callPackage ../../../fastlane {
|
|
bundlerEnv = _:
|
|
bundlerEnv {
|
|
name = "fastlane-gems";
|
|
gemdir = ../../../fastlane;
|
|
};
|
|
};
|
|
bundlerDeps = optionals platform.targetMobile [
|
|
bundler
|
|
ruby
|
|
]; # bundler/ruby used for fastlane on macOS
|
|
inherit (fastlane) shellHook;
|
|
|
|
# TARGETS
|
|
shell = mkShell {
|
|
buildInputs = [ fastlane curl ] ++ bundlerDeps;
|
|
inherit shellHook;
|
|
};
|
|
|
|
in {
|
|
# We only include bundler in regular shell if targetting iOS, because that's how the CI builds the whole project
|
|
buildInputs = unique (optionals platform.targetIOS bundlerDeps);
|
|
inherit shellHook;
|
|
|
|
# TARGETS
|
|
inherit shell;
|
|
}
|