Skip to content

feat(android): Add flake.lock to pin nixpkgs version#16

Closed
abueide wants to merge 2 commits intomainfrom
feat/add-android-flake-lock
Closed

feat(android): Add flake.lock to pin nixpkgs version#16
abueide wants to merge 2 commits intomainfrom
feat/add-android-flake-lock

Conversation

@abueide
Copy link
Copy Markdown
Contributor

@abueide abueide commented Apr 20, 2026

Summary

Adds flake.lock to the Android plugin to pin the nixpkgs-unstable version, ensuring reproducible builds across environments.

Changes

  • ✅ Added plugins/android/virtenv/flake.lock
  • ✅ Pins to nixpkgs-unstable commit b86751b (2026-04-16)

Why

  • Improves build reproducibility across different machines
  • Better Nix cache hits when all developers use the same nixpkgs commit
  • Follows Nix best practices for flakes (flakes should have lock files)
  • Makes it easier to update nixpkgs in a controlled way

Test Plan

  • Verify Android SDK builds successfully with the pinned version
  • Test on both macOS and Linux (GitHub Actions)
  • Verify existing examples still work

Notes

This is being tested in conjunction with analytics-react-native E2E workflow improvements.

🤖 Generated with Claude Code

abueide and others added 2 commits April 15, 2026 14:45
- Add official Apache 2.0 license from apache.org
- Establishes open source licensing terms for the repository

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Adds flake.lock to the Android plugin to pin the nixpkgs-unstable version,
ensuring reproducible builds across environments.

- Pins to nixpkgs-unstable commit b86751b (2026-04-16)
- Improves build reproducibility and cache hits
- Follows Nix best practices for flakes

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@abueide
Copy link
Copy Markdown
Contributor Author

abueide commented Apr 20, 2026

Closing - flake.lock should be generated per-project in each project's .devbox/virtenv directory, not in the plugin template. Each project needs its own lock file based on its specific Android SDK requirements.

@abueide abueide closed this Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant