2020-05-06 15:33:54 +02:00
|
|
|
{ callPackage, lib, mkShell, deps, pkgs
|
|
|
|
, status-go, fastlane }:
|
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
|
|
|
|
2020-04-26 14:40:06 +02:00
|
|
|
pod-shell = callPackage ./pod-shell.nix { };
|
2019-11-29 11:20:08 +01:00
|
|
|
status-go-shell = callPackage ./status-go-shell.nix { inherit status-go; };
|
|
|
|
|
2020-05-06 00:48:50 +02:00
|
|
|
in {
|
|
|
|
inherit pod-shell status-go-shell;
|
|
|
|
|
|
|
|
shell = mkShell {
|
2020-05-06 15:33:54 +02:00
|
|
|
buildInputs = with pkgs; [
|
2020-05-06 00:48:50 +02:00
|
|
|
xcodeWrapper watchman bundler procps
|
2020-05-07 12:21:39 +02:00
|
|
|
flock # used in nix/scripts/node_modules.sh
|
2020-05-06 00:48:50 +02:00
|
|
|
];
|
2019-06-04 18:50:29 +02:00
|
|
|
|
2020-05-06 00:48:50 +02:00
|
|
|
inputsFrom = [
|
|
|
|
fastlane.shell
|
|
|
|
status-go-shell
|
|
|
|
pod-shell
|
|
|
|
];
|
2019-12-04 14:14:55 +01:00
|
|
|
|
2020-04-26 14:40:06 +02:00
|
|
|
shellHook = ''
|
2020-07-01 21:45:39 +02:00
|
|
|
# check if node modules changed and if so install them
|
|
|
|
./nix/scripts/node_modules.sh "${deps.nodejs-patched}"
|
2020-04-26 14:40:06 +02:00
|
|
|
'';
|
2019-12-04 14:14:55 +01:00
|
|
|
};
|
2019-11-29 11:20:08 +01:00
|
|
|
|
2019-06-04 18:50:29 +02:00
|
|
|
}
|