mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-02 14:03:06 +00:00
* android-ndk is added * in the derivation, system nim is default but one can change it to nimbus-build-system * special script for creating nimble links, necessary for the compilation to succeed. Referenced issue: * https://github.com/waku-org/nwaku/issues/3232
20 lines
588 B
Nix
20 lines
588 B
Nix
{ mkShell, openjdk, androidPkgs }:
|
|
|
|
mkShell {
|
|
name = "android-sdk-shell";
|
|
buildInputs = [ openjdk ];
|
|
|
|
shellHook = ''
|
|
export ANDROID_HOME="${androidPkgs.sdk}"
|
|
export ANDROID_NDK_ROOT="${androidPkgs.ndk}"
|
|
export ANDROID_SDK_ROOT="$ANDROID_HOME"
|
|
export ANDROID_NDK_HOME="${androidPkgs.ndk}"
|
|
|
|
export PATH="$ANDROID_NDK_ROOT:$PATH"
|
|
export PATH="$ANDROID_SDK_ROOT/tools:$PATH"
|
|
export PATH="$ANDROID_SDK_ROOT/tools/bin:$PATH"
|
|
export PATH="$(echo $ANDROID_SDK_ROOT/cmdline-tools/*/bin):$PATH"
|
|
export PATH="$ANDROID_SDK_ROOT/platform-tools:$PATH"
|
|
'';
|
|
}
|