2022-05-26 11:11:34 +02:00
|
|
|
{ pkgs, deps, callPackage, mkShell
|
2023-05-16 18:42:56 +02:00
|
|
|
, jsbundle, status-go, androidPkgs, androidShell }:
|
2019-06-04 18:50:29 +02:00
|
|
|
|
2023-05-16 18:42:56 +02:00
|
|
|
rec {
|
|
|
|
release = callPackage ./release.nix {
|
|
|
|
inherit jsbundle status-go;
|
|
|
|
};
|
2020-05-06 00:48:50 +02:00
|
|
|
|
|
|
|
shell = mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
2020-05-06 15:33:54 +02:00
|
|
|
openjdk
|
|
|
|
gradle
|
2020-05-06 00:48:50 +02:00
|
|
|
lsof # used in start-react-native.sh
|
2020-05-07 12:21:39 +02:00
|
|
|
flock # used in nix/scripts/node_modules.sh
|
2020-05-06 00:48:50 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
inputsFrom = [
|
|
|
|
release
|
|
|
|
androidShell
|
|
|
|
];
|
|
|
|
|
|
|
|
shellHook = ''
|
2021-07-22 12:51:05 +02:00
|
|
|
export ANDROID_SDK_ROOT="${androidPkgs.sdk}"
|
|
|
|
export ANDROID_NDK_ROOT="${androidPkgs.ndk}"
|
2020-05-06 00:48:50 +02:00
|
|
|
|
2020-05-20 13:35:56 +02:00
|
|
|
export STATUS_NIX_MAVEN_REPO="${deps.gradle}"
|
2020-05-07 12:21:39 +02:00
|
|
|
|
2020-05-06 00:48:50 +02:00
|
|
|
# required by some makefile targets
|
2022-08-04 10:20:44 +02:00
|
|
|
export STATUS_GO_ANDROID_LIBDIR=${status-go}
|
2020-05-06 00:48:50 +02:00
|
|
|
|
2020-07-01 21:45:39 +02:00
|
|
|
# check if node modules changed and if so install them
|
2022-07-17 14:37:46 +02:00
|
|
|
$STATUS_MOBILE_HOME/nix/scripts/node_modules.sh ${deps.nodejs-patched}
|
2020-05-06 00:48:50 +02:00
|
|
|
'';
|
|
|
|
};
|
2019-06-04 18:50:29 +02:00
|
|
|
}
|