add android build tools
This commit is contained in:
20
flake.nix
20
flake.nix
@@ -47,17 +47,29 @@
|
|||||||
includeNDK = true;
|
includeNDK = true;
|
||||||
platformVersions = [ "32" ];
|
platformVersions = [ "32" ];
|
||||||
};
|
};
|
||||||
|
androidStudio = pkgs.android-studio.withSdk androidComposition.androidsdk;
|
||||||
|
xbuild = pkgs.callPackage ./xbuild { };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages.default = pkgs.callPackage ./xbuild { };
|
packages.default = xbuild;
|
||||||
devShells.default = pkgs.mkShell rec {
|
devShells.default = pkgs.mkShell rec {
|
||||||
# build dependencies
|
# build dependencies
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
|
jdk
|
||||||
|
kotlin
|
||||||
|
gradle
|
||||||
|
squashfsTools
|
||||||
|
clang
|
||||||
|
lldb
|
||||||
|
libllvm
|
||||||
|
lld
|
||||||
|
androidComposition.androidsdk
|
||||||
|
|
||||||
# the entire rust toolchain
|
# the entire rust toolchain
|
||||||
rustToolchain
|
rustToolchain
|
||||||
|
|
||||||
# tool for cross compiling
|
# tool for cross compiling
|
||||||
cargo-apk
|
xbuild
|
||||||
# xbuild
|
|
||||||
|
|
||||||
pkg-config
|
pkg-config
|
||||||
openssl
|
openssl
|
||||||
@@ -112,6 +124,8 @@
|
|||||||
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
|
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
|
||||||
# this is most likely not needed. for some reason shadows flicker without it.
|
# this is most likely not needed. for some reason shadows flicker without it.
|
||||||
AMD_VULKAN_ICD = "RADV";
|
AMD_VULKAN_ICD = "RADV";
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
# This only formats the nix files.
|
# This only formats the nix files.
|
||||||
formatter = pkgs.nixpkgs-fmt;
|
formatter = pkgs.nixpkgs-fmt;
|
||||||
|
|||||||
Reference in New Issue
Block a user