From nixpkgs: by setting nixpkgs config option 'android_sdk.accept_license = true;'.
by setting nixpkgs config option 'android_sdk.accept_license = true;'.
So pkgs = import nixpkgs { system = mySystem; config = {android_sdk.accept_license = true;};};
pkgs = import nixpkgs { system = mySystem; config = {android_sdk.accept_license = true;};};
Or if you're configuring a nixos system, see the nixpkgs.config option.
nixpkgs.config
I am wondering: How is this related to flakes?