mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
88ef7a8598
Rename androidPkgs_9_0 to androidPkgs, and treat it more like a "full" androidenv package.
27 lines
710 B
Nix
27 lines
710 B
Nix
{ config, pkgs ? import <nixpkgs> {}
|
|
, licenseAccepted ? config.android_sdk.accept_license or (builtins.getEnv "NIXPKGS_ACCEPT_ANDROID_SDK_LICENSE" == "1")
|
|
}:
|
|
|
|
rec {
|
|
composeAndroidPackages = pkgs.callPackage ./compose-android-packages.nix {
|
|
inherit licenseAccepted;
|
|
};
|
|
|
|
buildApp = pkgs.callPackage ./build-app.nix {
|
|
inherit composeAndroidPackages;
|
|
};
|
|
|
|
emulateApp = pkgs.callPackage ./emulate-app.nix {
|
|
inherit composeAndroidPackages;
|
|
};
|
|
|
|
androidPkgs = composeAndroidPackages {
|
|
platformVersions = [ "28" "29" "30" "31" "32" "33" "34" ];
|
|
includeEmulator = true;
|
|
includeSystemImages = true;
|
|
includeNDK = true;
|
|
};
|
|
|
|
test-suite = pkgs.callPackage ./test-suite.nix {};
|
|
}
|