2023-04-20 10:36:48 +00:00
|
|
|
{ callPackage, lib, mkShell, pkgs, stdenv
|
2020-05-06 13:33:54 +00:00
|
|
|
, status-go, fastlane }:
|
2019-06-04 16:50:29 +00:00
|
|
|
|
2023-04-20 10:36:48 +00:00
|
|
|
assert lib.assertMsg stdenv.isDarwin
|
|
|
|
"iOS development shell supported only on OSX.";
|
|
|
|
|
2019-06-04 16:50:29 +00:00
|
|
|
let
|
2019-11-29 10:20:08 +00:00
|
|
|
inherit (lib) catAttrs unique;
|
2019-06-04 16:50:29 +00:00
|
|
|
|
2022-10-10 18:01:17 +00:00
|
|
|
# Sub-shells preparing various dependencies.
|
2022-08-29 16:26:14 +00:00
|
|
|
nodejs-sh = callPackage ./shells/nodejs.nix { };
|
2022-10-10 18:01:17 +00:00
|
|
|
bundler-sh = callPackage ./shells/bundler.nix { };
|
|
|
|
cocoapods-sh = callPackage ./shells/cocoapods.nix { };
|
2022-08-29 16:26:14 +00:00
|
|
|
status-go-sh = callPackage ./shells/status-go.nix { inherit status-go; };
|
2019-11-29 10:20:08 +00:00
|
|
|
|
2020-05-05 22:48:50 +00:00
|
|
|
in {
|
2022-08-29 16:26:14 +00:00
|
|
|
inherit nodejs-sh cocoapods-sh status-go-sh;
|
2020-05-05 22:48:50 +00:00
|
|
|
|
|
|
|
shell = mkShell {
|
2020-05-06 13:33:54 +00:00
|
|
|
buildInputs = with pkgs; [
|
2022-10-10 18:01:17 +00:00
|
|
|
xcodeWrapper watchman procps
|
2020-05-07 10:21:39 +00:00
|
|
|
flock # used in nix/scripts/node_modules.sh
|
2023-04-20 10:36:48 +00:00
|
|
|
ios-deploy # used in 'make run-ios-device'
|
2023-12-22 14:15:59 +00:00
|
|
|
xcbeautify # used in 'make run-ios'
|
2020-05-05 22:48:50 +00:00
|
|
|
];
|
2019-06-04 16:50:29 +00:00
|
|
|
|
2021-04-09 07:48:53 +00:00
|
|
|
# WARNING: Executes shellHook in reverse order.
|
2023-03-01 16:27:43 +00:00
|
|
|
# WARNING: Only some variables are merged.
|
2020-05-05 22:48:50 +00:00
|
|
|
inputsFrom = [
|
|
|
|
fastlane.shell
|
2022-08-29 16:26:14 +00:00
|
|
|
cocoapods-sh
|
2022-10-10 18:01:17 +00:00
|
|
|
nodejs-sh # before 'pod install'
|
|
|
|
bundler-sh # before 'pod install'
|
2022-08-29 16:26:14 +00:00
|
|
|
status-go-sh # before 'pod install'
|
2020-05-05 22:48:50 +00:00
|
|
|
];
|
2019-12-04 13:14:55 +00:00
|
|
|
};
|
2019-06-04 16:50:29 +00:00
|
|
|
}
|