2021-01-23 18:15:07 +01:00
|
|
|
{ lib, androidenv, buildPackages, pkgs, targetPackages
|
2018-11-28 22:14:43 +01:00
|
|
|
}:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
{
|
2020-08-13 07:10:21 +02:00
|
|
|
"21" =
|
2018-12-18 22:58:12 +01:00
|
|
|
let
|
2020-08-13 07:10:21 +02:00
|
|
|
ndkVersion = "21.0.6113669";
|
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 {
|
2021-01-23 18:15:07 +01:00
|
|
|
inherit lib;
|
2018-12-18 22:58:12 +01:00
|
|
|
inherit (buildPackages)
|
2022-06-29 11:24:50 +02:00
|
|
|
makeWrapper autoPatchelfHook;
|
2018-12-18 22:58:12 +01:00
|
|
|
inherit (pkgs)
|
2019-06-16 21:59:06 +02:00
|
|
|
stdenv
|
2018-12-18 22:58:12 +01: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 07:10:21 +02:00
|
|
|
targetAndroidndkPkgs = targetPackages.androidndkPkgs_21;
|
2018-12-18 22:58:12 +01:00
|
|
|
};
|
2020-08-13 07:10:21 +02:00
|
|
|
|
2022-06-25 20:20:13 +02:00
|
|
|
"23b" =
|
|
|
|
let
|
|
|
|
ndkVersion = "23.1.7779620";
|
|
|
|
|
|
|
|
buildAndroidComposition = buildPackages.buildPackages.androidenv.composeAndroidPackages {
|
|
|
|
includeNDK = true;
|
|
|
|
inherit ndkVersion;
|
|
|
|
};
|
|
|
|
|
|
|
|
androidComposition = androidenv.composeAndroidPackages {
|
|
|
|
includeNDK = true;
|
|
|
|
inherit ndkVersion;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
import ./androidndk-pkgs.nix {
|
|
|
|
inherit lib;
|
|
|
|
inherit (buildPackages)
|
2022-06-29 11:24:50 +02:00
|
|
|
makeWrapper autoPatchelfHook;
|
2022-06-25 20:20:13 +02:00
|
|
|
inherit (pkgs)
|
|
|
|
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_23b;
|
|
|
|
};
|
|
|
|
|
|
|
|
"24" =
|
|
|
|
let
|
|
|
|
ndkVersion = "24.0.8215888";
|
|
|
|
|
|
|
|
buildAndroidComposition = buildPackages.buildPackages.androidenv.composeAndroidPackages {
|
|
|
|
includeNDK = true;
|
|
|
|
inherit ndkVersion;
|
|
|
|
};
|
|
|
|
|
|
|
|
androidComposition = androidenv.composeAndroidPackages {
|
|
|
|
includeNDK = true;
|
|
|
|
inherit ndkVersion;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
import ./androidndk-pkgs.nix {
|
|
|
|
inherit lib;
|
|
|
|
inherit (buildPackages)
|
2022-06-29 11:24:50 +02:00
|
|
|
makeWrapper autoPatchelfHook;
|
2022-06-25 20:20:13 +02:00
|
|
|
inherit (pkgs)
|
|
|
|
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_24;
|
|
|
|
};
|
|
|
|
|
2018-11-28 22:14:43 +01:00
|
|
|
}
|