Android-nixpkgs: Nix-packaged Android SDK, updated daily

I’ve been using this at work for a couple of years, and recently polished it up with a README and flake support.

It’s similar to androidenv in nixpkgs, except it contains every package provided by the upstream Android SDK repositories and is regenerated daily through CI.

The repository provides a Nix channel, a flake.nix, and a Home Manager module.

I’ve found it extremely helpful at my place of employment as I can synchronize my personal SDK installation with the SDK installation used for CI on a real-world commercial Android app.

I would love to move this to the nix-community org if this would be welcome there.

Thanks!

19 Likes

Dear Tad, I’m pretty newbie in nixos, however all my attempts to make your solution work as HM module using flakes failed, I have tried to make configuration as per your github readme.md but it fails on

android-nixpkgs.hmModule
{
   **android-sdk.enable = true;**
}

it says that config statements needs to be moved on top-level, however when I move android-sdk.enable out of imports block it complains for attribute androidSdk is missing on android-sdk.finalPackage = pkgs.androidSdk line.

Please, advise, your help would be much appreciated

@tad

To add this to nix-community, simple open discussion here: nix-community · Discussions · GitHub

1 Like