get it working on all platforms again
This commit is contained in:
33
shell.nix
Normal file
33
shell.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
with pkgs;
|
||||
let
|
||||
x11libs = lib.makeLibraryPath [ xorg.libX11 xorg.libXcursor xorg.libXrandr xorg.libXi libglvnd vulkan-loader vulkan-validation-layers ];
|
||||
ndk-version = "24.0.8215888";
|
||||
androidComposition = androidenv.composeAndroidPackages {
|
||||
includeNDK = true;
|
||||
ndkVersions = [ ndk-version ];
|
||||
platformVersions = [ "28" "29" "30" ];
|
||||
useGoogleAPIs = false;
|
||||
#useGoogleTVAddOns = false;
|
||||
#includeExtras = [
|
||||
# "extras;google;gcm"
|
||||
#];
|
||||
};
|
||||
androidsdk = androidComposition.androidsdk;
|
||||
android-home = "${androidsdk}/libexec/android-sdk";
|
||||
ndk-home = "${android-home}/ndk/${ndk-version}";
|
||||
in
|
||||
|
||||
mkShell {
|
||||
nativeBuildInputs = [
|
||||
cargo-edit cargo-watch rustup rustfmt libiconv pkgconfig cmake fontconfig
|
||||
brotli wabt
|
||||
|
||||
# android
|
||||
jre openssl libiconv androidsdk
|
||||
];
|
||||
|
||||
ANDROID_HOME = android-home;
|
||||
NDK_HOME = ndk-home;
|
||||
LD_LIBRARY_PATH="${x11libs}";
|
||||
}
|
||||
Reference in New Issue
Block a user