forked from Blendman974/faceclaw
chore: align Nix build tooling with Android Kotlin requirements
This commit is contained in:
2 files changed
+11
-3
No files matched your search
+6
-1
@@ -6,7 +6,8 @@
|
||||
};
|
||||
languages.java = {
|
||||
enable = true;
|
||||
jdk.package = pkgs.jdk17;
|
||||
jdk.package = pkgs.jdk21;
|
||||
lsp.enable = false;
|
||||
};
|
||||
android = {
|
||||
enable = true;
|
||||
@@ -22,6 +23,9 @@
|
||||
packages = with pkgs; [ git gh curl jq ripgrep python3 pkg-config gnumake gcc unzip zip ];
|
||||
# Gradle's downloaded aapt2 cannot run directly on NixOS.
|
||||
env.GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${config.env.ANDROID_HOME}/build-tools/35.0.0/aapt2";
|
||||
# NativeScript's doctor rejects a valid build-only SDK without an emulator.
|
||||
# enterTest below checks the actual tools used by our local builds.
|
||||
env.NS_SKIP_ENV_CHECK = "1";
|
||||
scripts.faceclaw-setup.exec = "npm ci";
|
||||
scripts.faceclaw-test.exec = "npm test";
|
||||
enterShell = ''
|
||||
@@ -32,5 +36,6 @@
|
||||
java -version
|
||||
test -f "$ANDROID_HOME/platforms/android-35/android.jar"
|
||||
test -x "$ANDROID_HOME/build-tools/35.0.0/aapt2"
|
||||
test -x "$ANDROID_HOME/platform-tools/adb"
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user