2018-11-28 22:14:43 +01:00
|
|
|
{ androidenv, buildPackages, pkgs, targetPackages
|
|
|
|
, includeSources ? true, licenseAccepted ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
rec {
|
2018-12-18 22:58:12 +01:00
|
|
|
"18b" =
|
|
|
|
let
|
|
|
|
ndkVersion = "18.1.5063045";
|
2018-11-28 22:14:43 +01:00
|
|
|
|
2018-12-18 22:58:12 +01:00
|
|
|
buildAndroidComposition = buildPackages.buildPackages.androidenv.composeAndroidPackages {
|
|
|
|
includeNDK = true;
|
|
|
|
inherit ndkVersion;
|
|
|
|
};
|
2018-11-28 22:14:43 +01:00
|
|
|
|
2018-12-18 22:58:12 +01:00
|
|
|
androidComposition = androidenv.composeAndroidPackages {
|
|
|
|
includeNDK = true;
|
|
|
|
inherit ndkVersion;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
import ./androidndk-pkgs.nix {
|
|
|
|
inherit (buildPackages)
|
|
|
|
makeWrapper;
|
|
|
|
inherit (pkgs)
|
|
|
|
lib stdenv
|
|
|
|
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;
|
|
|
|
targetAndroidndkPkgs = targetPackages.androidndkPkgs_18b;
|
|
|
|
};
|
2018-11-28 22:14:43 +01:00
|
|
|
}
|