feat/nixos-android-devshell #1053

Merged
SakulFlee merged 4 commits from feat/nixos-android-devshell into main 2026-11-06 01:52:01 +00:00
Owner
<!-- Please read and understand every line you submit, verify the build, lints, tests, and affected examples, and remove any AI/model attribution. You own this change and are responsible for its correctness, licensing, security, and follow-up. Delete this note before opening the pull request. -->
Prefer explicit environment variables over the Orbital-managed caches, understand versioned cmdline-tools directories, and avoid offering generic Linux downloads on NixOS. Read-only Nix SDKs now fail with guidance instead of trying to install into the Nix store.
Use rustc's target-libdir output to detect installed Android standard libraries so Nix/fenix toolchains work without a rustup shim. Fall back to rustup only when it is available, and use the correct 'rustup target add' command.
Provide a dedicated devShell with a pinned Android SDK, NDK 26.2, build-tools 36.0.0, JDK 25, cargo-ndk, and the Android Rust standard libraries. The default shell and direnv are unchanged, so Android tooling is only downloaded when 'nix develop .#android' is used.
feat(cli): expose engine dev shells in generated projects
All checks were successful
Lint / lint (pull_request) Successful in 1m23s
Templates / templates (pull_request) Successful in 5m3s
PR / test (pull_request) Successful in 14m52s
28c12e936d
Re-export every engine devShell instead of only the default, so generated projects can select the opt-in Android shell. Mention 'nix develop .#android' in generated envrc files and on NixOS after scaffolding Android projects.

Smart test results

Result: PASS

Scope: full workspace

Reason: workspace-level change: flake.nix

Elapsed: 14m 34s

Workflow run

Overall: 509 tests, 499 passed, 0 failed, 10 skipped

Nextest: 498 tests, 498 passed, 0 failed, 0 skipped
Doctests: 11 tests, 1 passed, 0 failed, 10 skipped

Outcome charts are split between nextest and doctests. The timing chart covers nextest only.

Crate Nextest Passed Failed Skipped Doctests Time
orbital 1 1 0 0 - 0.69s
orbital-cli 2 2 0 0 - 0.01s
orbital_2d 29 29 0 0 0/1 0.16s
orbital_app 19 19 0 0 0/1 0.10s
orbital_billboard 6 6 0 0 - 0.12s
orbital_camera 8 8 0 0 - 0.05s
orbital_core 2 2 0 0 - 0.01s
orbital_debug_render 2 2 0 0 0/1 0.01s
orbital_debug_ui 50 50 0 0 0/1 0.28s
orbital_ecs 114 114 0 0 0/2 0.66s
orbital_ecs_bridge 44 44 0 0 - 0.30s
orbital_file_manager 5 5 0 0 - 0.03s
orbital_iced 25 25 0 0 - 0.15s
orbital_importer_gltf 16 16 0 0 - 0.15s
orbital_input 11 11 0 0 - 0.05s
orbital_light 6 6 0 0 - 0.03s
orbital_macros 0 0 0 0 0/1 0.00s
orbital_material_shader 2 2 0 0 - 0.01s
orbital_math 4 4 0 0 - 0.02s
orbital_mesh 2 2 0 0 - 0.01s
orbital_procgeo 3 3 0 0 - 0.01s
orbital_render_graph 6 6 0 0 - 0.03s
orbital_renderer 21 21 0 0 - 0.19s
orbital_resources 29 29 0 0 - 0.18s
orbital_shader_core 0 0 0 0 1/1 0.00s
orbital_shader_pbr 4 4 0 0 - 0.02s
orbital_shader_preprocessor 12 12 0 0 - 0.06s
orbital_shadow 3 3 0 0 - 0.01s
orbital_text 14 14 0 0 0/1 0.32s
orbital_texture 11 11 0 0 - 0.06s
orbital_touch_ui 1 1 0 0 0/1 0.01s
orbital_ui 32 32 0 0 0/1 0.19s
orbital_world_environment 13 13 0 0 - 0.08s
template_all_in_one 1 1 0 0 - 0.01s
pie showData
    title Nextest outcomes
    "Passed" : 498
pie showData
    title Doctest outcomes
    "Passed" : 1
    "Skipped" : 10
xychart-beta
    title "Slowest crates (nextest seconds)"
    x-axis ["orbital", "orbital_ecs", "orbital_text", "orbital_ecs_bridge", "orbital_debug_ui", "orbital_renderer", "orbital_ui", "orbital_resources"]
    y-axis "Seconds" 0 --> 1
    bar [0.69, 0.66, 0.32, 0.30, 0.28, 0.19, 0.19, 0.18]
<!-- orbital-ci-test-results --> ## Smart test results **Result:** PASS **Scope:** full workspace **Reason:** workspace-level change: flake.nix **Elapsed:** 14m 34s [Workflow run](https://forgejo.sakul-flee.de/SakulFlee/Orbital/actions/runs/1150) **Overall:** 509 tests, 499 passed, 0 failed, 10 skipped **Nextest:** 498 tests, 498 passed, 0 failed, 0 skipped **Doctests:** 11 tests, 1 passed, 0 failed, 10 skipped _Outcome charts are split between nextest and doctests. The timing chart covers nextest only._ | Crate | Nextest | Passed | Failed | Skipped | Doctests | Time | | --- | ---: | ---: | ---: | ---: | ---: | ---: | | orbital | 1 | 1 | 0 | 0 | - | 0.69s | | orbital-cli | 2 | 2 | 0 | 0 | - | 0.01s | | orbital_2d | 29 | 29 | 0 | 0 | 0/1 | 0.16s | | orbital_app | 19 | 19 | 0 | 0 | 0/1 | 0.10s | | orbital_billboard | 6 | 6 | 0 | 0 | - | 0.12s | | orbital_camera | 8 | 8 | 0 | 0 | - | 0.05s | | orbital_core | 2 | 2 | 0 | 0 | - | 0.01s | | orbital_debug_render | 2 | 2 | 0 | 0 | 0/1 | 0.01s | | orbital_debug_ui | 50 | 50 | 0 | 0 | 0/1 | 0.28s | | orbital_ecs | 114 | 114 | 0 | 0 | 0/2 | 0.66s | | orbital_ecs_bridge | 44 | 44 | 0 | 0 | - | 0.30s | | orbital_file_manager | 5 | 5 | 0 | 0 | - | 0.03s | | orbital_iced | 25 | 25 | 0 | 0 | - | 0.15s | | orbital_importer_gltf | 16 | 16 | 0 | 0 | - | 0.15s | | orbital_input | 11 | 11 | 0 | 0 | - | 0.05s | | orbital_light | 6 | 6 | 0 | 0 | - | 0.03s | | orbital_macros | 0 | 0 | 0 | 0 | 0/1 | 0.00s | | orbital_material_shader | 2 | 2 | 0 | 0 | - | 0.01s | | orbital_math | 4 | 4 | 0 | 0 | - | 0.02s | | orbital_mesh | 2 | 2 | 0 | 0 | - | 0.01s | | orbital_procgeo | 3 | 3 | 0 | 0 | - | 0.01s | | orbital_render_graph | 6 | 6 | 0 | 0 | - | 0.03s | | orbital_renderer | 21 | 21 | 0 | 0 | - | 0.19s | | orbital_resources | 29 | 29 | 0 | 0 | - | 0.18s | | orbital_shader_core | 0 | 0 | 0 | 0 | 1/1 | 0.00s | | orbital_shader_pbr | 4 | 4 | 0 | 0 | - | 0.02s | | orbital_shader_preprocessor | 12 | 12 | 0 | 0 | - | 0.06s | | orbital_shadow | 3 | 3 | 0 | 0 | - | 0.01s | | orbital_text | 14 | 14 | 0 | 0 | 0/1 | 0.32s | | orbital_texture | 11 | 11 | 0 | 0 | - | 0.06s | | orbital_touch_ui | 1 | 1 | 0 | 0 | 0/1 | 0.01s | | orbital_ui | 32 | 32 | 0 | 0 | 0/1 | 0.19s | | orbital_world_environment | 13 | 13 | 0 | 0 | - | 0.08s | | template_all_in_one | 1 | 1 | 0 | 0 | - | 0.01s | ```mermaid pie showData title Nextest outcomes "Passed" : 498 ``` ```mermaid pie showData title Doctest outcomes "Passed" : 1 "Skipped" : 10 ``` ```mermaid xychart-beta title "Slowest crates (nextest seconds)" x-axis ["orbital", "orbital_ecs", "orbital_text", "orbital_ecs_bridge", "orbital_debug_ui", "orbital_renderer", "orbital_ui", "orbital_resources"] y-axis "Seconds" 0 --> 1 bar [0.69, 0.66, 0.32, 0.30, 0.28, 0.19, 0.19, 0.18] ```
SakulFlee deleted branch feat/nixos-android-devshell 2026-11-06 01:52:01 +00:00
Sign in to join this conversation.
No description provided.