2018-11-28 21:14:43 +00:00
|
|
|
{ androidenv, buildPackages, pkgs, targetPackages
|
|
|
|
}:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
{
|
2020-08-13 06:10:21 +01:00
|
|
|
"21" =
|
2018-12-18 21:58:12 +00:00
|
|
|
let
|
2020-08-13 06:10:21 +01:00
|
|
|
ndkVersion = "21.0.6113669";
|
2018-11-28 21:14:43 +00:00
|
|
|
|
2018-12-18 21:58:12 +00:00
|
|
|
buildAndroidComposition = buildPackages.buildPackages.androidenv.composeAndroidPackages {
|
|
|
|
includeNDK = true;
|
|
|
|
inherit ndkVersion;
|
|
|
|
};
|
2018-11-28 21:14:43 +00:00
|
|
|
|
2018-12-18 21:58:12 +00:00
|
|
|
androidComposition = androidenv.composeAndroidPackages {
|
|
|
|
includeNDK = true;
|
|
|
|
inherit ndkVersion;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
import ./androidndk-pkgs.nix {
|
|
|
|
inherit (buildPackages)
|
|
|
|
makeWrapper;
|
|
|
|
inherit (pkgs)
|
2019-06-16 20:59:06 +01:00
|
|
|
stdenv
|
2018-12-18 21:58:12 +00:00
|
|
|
runCommand wrapBintoolsWith wrapCCWith;
|
|
|
|
# buildPackages.foo rather than buildPackages.buildPackages.foo would work,
|
|
|
|
# but for splicing messing up on infinite recursion for the variants we
|
|
|
|
# *dont't* use. Using this workaround, but also making a test to ensure
|
|
|
|
# these two really are the same.
|
|
|
|
buildAndroidndk = buildAndroidComposition.ndk-bundle;
|
|
|
|
androidndk = androidComposition.ndk-bundle;
|
2020-08-13 06:10:21 +01:00
|
|
|
targetAndroidndkPkgs = targetPackages.androidndkPkgs_21;
|
2018-12-18 21:58:12 +00:00
|
|
|
};
|
2020-08-13 06:10:21 +01:00
|
|
|
|
2018-11-28 21:14:43 +00:00
|
|
|
}
|