36 lines
834 B
Nix
36 lines
834 B
Nix
{ pkgs, deps, callPackage, mkShell
|
|
, jsbundle, status-go, androidPkgs, androidShell }:
|
|
|
|
rec {
|
|
release = callPackage ./release.nix {
|
|
inherit jsbundle status-go;
|
|
};
|
|
|
|
shell = mkShell {
|
|
buildInputs = with pkgs; [
|
|
openjdk
|
|
gradle
|
|
lsof # used in start-react-native.sh
|
|
flock # used in nix/scripts/node_modules.sh
|
|
];
|
|
|
|
inputsFrom = [
|
|
release
|
|
androidShell
|
|
];
|
|
|
|
shellHook = ''
|
|
export ANDROID_SDK_ROOT="${androidPkgs.sdk}"
|
|
export ANDROID_NDK_ROOT="${androidPkgs.ndk}"
|
|
|
|
export STATUS_NIX_MAVEN_REPO="${deps.gradle}"
|
|
|
|
# required by some makefile targets
|
|
export STATUS_GO_ANDROID_LIBDIR=${status-go}
|
|
|
|
# check if node modules changed and if so install them
|
|
$STATUS_MOBILE_HOME/nix/scripts/node_modules.sh ${deps.nodejs-patched}
|
|
'';
|
|
};
|
|
}
|