mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
452854a13c
We just need jdk for this script that helps set up toolchains. The script might need to know about the target platform, but the interpreter that runs it (or part of it) doesn't.
27 lines
763 B
Nix
27 lines
763 B
Nix
{ config, pkgs ? import <nixpkgs> {}, pkgsHostHost ? pkgs.pkgsHostHost
|
|
, pkgs_i686 ? import <nixpkgs> { system = "i686-linux"; }
|
|
, licenseAccepted ? config.android_sdk.accept_license or false
|
|
}:
|
|
|
|
rec {
|
|
composeAndroidPackages = import ./compose-android-packages.nix {
|
|
inherit (pkgs) requireFile autoPatchelfHook;
|
|
inherit pkgs pkgsHostHost pkgs_i686 licenseAccepted;
|
|
};
|
|
|
|
buildApp = import ./build-app.nix {
|
|
inherit (pkgs) stdenv lib jdk ant gnumake gawk;
|
|
inherit composeAndroidPackages;
|
|
};
|
|
|
|
emulateApp = import ./emulate-app.nix {
|
|
inherit (pkgs) stdenv lib runtimeShell;
|
|
inherit composeAndroidPackages;
|
|
};
|
|
|
|
androidPkgs_9_0 = composeAndroidPackages {
|
|
platformVersions = [ "28" ];
|
|
abiVersions = [ "x86" "x86_64"];
|
|
};
|
|
}
|