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