mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 11:34:45 +00:00
10b97843ce
I can't remember the number of times I have had to ask developers to run `make run-ios | xcbeautify` when debugging iOS build failures and they do not have `xcbeautify` installed on their environment. `xcbeautify` helps make `xcodebuild` output more readable and to identify problems quickly. This commit adds `xcbeautify` to iOS shell and to `make run-ios` so that we get readable output by default.
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
{ callPackage, lib, mkShell, pkgs, stdenv
|
|
, status-go, fastlane }:
|
|
|
|
assert lib.assertMsg stdenv.isDarwin
|
|
"iOS development shell supported only on OSX.";
|
|
|
|
let
|
|
inherit (lib) catAttrs unique;
|
|
|
|
# Sub-shells preparing various dependencies.
|
|
nodejs-sh = callPackage ./shells/nodejs.nix { };
|
|
bundler-sh = callPackage ./shells/bundler.nix { };
|
|
cocoapods-sh = callPackage ./shells/cocoapods.nix { };
|
|
status-go-sh = callPackage ./shells/status-go.nix { inherit status-go; };
|
|
|
|
in {
|
|
inherit nodejs-sh cocoapods-sh status-go-sh;
|
|
|
|
shell = mkShell {
|
|
buildInputs = with pkgs; [
|
|
xcodeWrapper watchman procps
|
|
flock # used in nix/scripts/node_modules.sh
|
|
ios-deploy # used in 'make run-ios-device'
|
|
xcbeautify # used in 'make run-ios'
|
|
];
|
|
|
|
# WARNING: Executes shellHook in reverse order.
|
|
# WARNING: Only some variables are merged.
|
|
inputsFrom = [
|
|
fastlane.shell
|
|
cocoapods-sh
|
|
nodejs-sh # before 'pod install'
|
|
bundler-sh # before 'pod install'
|
|
status-go-sh # before 'pod install'
|
|
];
|
|
};
|
|
}
|