# Pastebin ZWkPRNN7 with import /home/shmaryar/src/nixpkgs { crossSystem = { config = "aarch64-unknown-linux-android"; useAndroidPrebuilt = false; ndkVer = "21"; sdkVer = "30"; useLLVM = true; libc = "bionic"; }; }; let in mkShell { shell = "zsh"; name = "rust-dev-android"; nativeBuildInputs = [ buildPackages.buildPackages.cargo buildPackages.buildPackages.rust-analyzer buildPackages.buildPackages.rustup buildPackages.buildPackages.pkgconfig buildPackages.buildPackages.gdb buildPackages.buildPackages.lzma buildPackages.buildPackages.openssl ]; buildInputs = [ zlib openssl lzma ]; # your dependencies here LIBCLANG_PATH = "${buildPackages.buildPackages.llvmPackages_12.libclang.lib}/lib"; CLANG_PATH="${stdenv.cc}/bin/${stdenv.cc.targetPrefix}clang"; RUSTANALYZER_PATH = "${buildPackages.buildPackages.rust-analyzer}/bin/rust-analyzer"; }