add android sdk
This commit is contained in:
parent
b2c9bbf9a2
commit
aa9f7d997c
22
flake.nix
22
flake.nix
|
@ -22,17 +22,31 @@
|
||||||
# NOTE: zig overlay triggers issues with X11/GL libraries
|
# NOTE: zig overlay triggers issues with X11/GL libraries
|
||||||
# This might be misconfiguration on my end
|
# This might be misconfiguration on my end
|
||||||
overlays = [ ];
|
overlays = [ ];
|
||||||
config = { };
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
android_sdk.accept_license = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
formatter = pkgs.nixfmt;
|
formatter = pkgs.nixfmt;
|
||||||
|
|
||||||
devShells.default = with pkgs;
|
devShells.default = with pkgs;
|
||||||
mkShell {
|
mkShell {
|
||||||
LD_LIBRARY_PATH = lib.makeLibraryPath [ stdenv.cc.cc ]; # For libstdc++.so.6
|
LD_LIBRARY_PATH =
|
||||||
ANDROID_HOME = "foo/bar";
|
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 ];
|
buildInputs = [ sqlite ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue