add android sdk

This commit is contained in:
Fabien Freling 2023-12-20 22:42:14 +01:00
parent b2c9bbf9a2
commit aa9f7d997c
2 changed files with 20 additions and 6 deletions

View file

@ -22,17 +22,31 @@
# NOTE: zig overlay triggers issues with X11/GL libraries
# This might be misconfiguration on my end
overlays = [ ];
config = { };
config = {
allowUnfree = true;
android_sdk.accept_license = true;
};
};
formatter = pkgs.nixfmt;
devShells.default = with pkgs;
mkShell {
LD_LIBRARY_PATH = lib.makeLibraryPath [ stdenv.cc.cc ]; # For libstdc++.so.6
ANDROID_HOME = "foo/bar";
LD_LIBRARY_PATH =
lib.makeLibraryPath [ stdenv.cc.cc ]; # For libstdc++.so.6
ANDROID_HOME = "${androidenv.androidPkgs_9_0.androidsdk}/libexec/android-sdk";
nativeBuildInputs = [ clang just android-tools godot_4 ];
nativeBuildInputs = [
clang
just
godot_4
android-tools
androidenv.androidPkgs_9_0.androidsdk
androidenv.androidPkgs_9_0.platform-tools
jre_headless
];
buildInputs = [ sqlite ];
};
};

View file

@ -4,7 +4,7 @@ alias t := test
alias fmt := format
edit:
godot4 --editor godot/project.godot
godot4 --editor --quiet godot/project.godot
pre-build:
git submodule update --init --recursive