mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-11 01:07:00 +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>
33 lines
925 B
Nix
33 lines
925 B
Nix
#
|
|
# This Nix expression appends/modifies an existing attribute set in order to run scripts/setup if needed,
|
|
# as well as define STATUS_REACT_HOME
|
|
#
|
|
|
|
{ stdenv, mkShell, target-os, git }:
|
|
|
|
# Declare a specialized mkShell function which adds some bootstrapping
|
|
# so that e.g. STATUS_REACT_HOME is automatically available in the shell
|
|
attrs:
|
|
(mkShell.override({ inherit stdenv; }) attrs)
|
|
.overrideAttrs(super: {
|
|
nativeBuildInputs = (super.nativeBuildInputs or [ ]) ++ [ git ];
|
|
TARGET_OS = target-os;
|
|
shellHook = ''
|
|
set -e
|
|
|
|
export LANG="en_US.UTF-8"
|
|
export LANGUAGE="en_US.UTF-8"
|
|
|
|
export STATUS_REACT_HOME=$(git rev-parse --show-toplevel)
|
|
|
|
${super.shellHook or ""}
|
|
|
|
if [ "$IN_NIX_SHELL" != 'pure' ] && [ ! -f $STATUS_REACT_HOME/.ran-setup ]; then
|
|
$STATUS_REACT_HOME/scripts/setup
|
|
touch $STATUS_REACT_HOME/.ran-setup
|
|
fi
|
|
|
|
set +e
|
|
'';
|
|
})
|