2022-12-17 10:02:37 +00:00
|
|
|
{ config, pkgs ? import <nixpkgs> {}
|
2023-03-04 12:14:45 +00:00
|
|
|
, licenseAccepted ? config.android_sdk.accept_license or (builtins.getEnv "NIXPKGS_ACCEPT_ANDROID_SDK_LICENSE" == "1")
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rec {
|
2022-12-17 10:02:37 +00:00
|
|
|
composeAndroidPackages = pkgs.callPackage ./compose-android-packages.nix {
|
|
|
|
inherit licenseAccepted;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
buildApp = pkgs.callPackage ./build-app.nix {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit composeAndroidPackages;
|
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
emulateApp = pkgs.callPackage ./emulate-app.nix {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit composeAndroidPackages;
|
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
androidPkgs = composeAndroidPackages {
|
2024-10-11 05:15:48 +00:00
|
|
|
platformVersions = [ "28" "29" "30" "31" "32" "33" "34" "35" ];
|
2024-06-20 14:57:18 +00:00
|
|
|
includeEmulator = true;
|
|
|
|
includeSystemImages = true;
|
|
|
|
includeNDK = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
test-suite = pkgs.callPackage ./test-suite.nix {};
|
2024-10-11 05:15:48 +00:00
|
|
|
|
|
|
|
meta = with pkgs.lib; {
|
|
|
|
description = "Android SDK & sdkmanager";
|
|
|
|
homepage = "https://developer.android.com/tools/sdkmanager";
|
|
|
|
maintainers = with maintainers; [ numinit hadilq ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|