2021-02-05 17:12:51 +00:00
|
|
|
{ lib, androidenv, buildPackages, pkgs, targetPackages
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
{
|
2022-07-18 16:21:45 +00:00
|
|
|
"21" =
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
2022-07-18 16:21:45 +00:00
|
|
|
ndkVersion = "21.0.6113669";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildAndroidComposition = buildPackages.buildPackages.androidenv.composeAndroidPackages {
|
|
|
|
includeNDK = true;
|
|
|
|
inherit ndkVersion;
|
|
|
|
};
|
|
|
|
|
|
|
|
androidComposition = androidenv.composeAndroidPackages {
|
|
|
|
includeNDK = true;
|
|
|
|
inherit ndkVersion;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
import ./androidndk-pkgs.nix {
|
2021-02-05 17:12:51 +00:00
|
|
|
inherit lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (buildPackages)
|
2022-07-18 16:21:45 +00:00
|
|
|
makeWrapper autoPatchelfHook;
|
2020-04-24 23:36:52 +00: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;
|
2023-10-09 19:29:22 +00:00
|
|
|
targetAndroidndkPkgs = if targetPackages ? androidndkPkgs_21 then targetPackages.androidndkPkgs_21 else throw "androidndkPkgs_21: no targetPackages, use `buildPackages.androidndkPkgs_21";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
"23b" =
|
2020-09-25 04:45:31 +00:00
|
|
|
let
|
2022-07-18 16:21:45 +00:00
|
|
|
ndkVersion = "23.1.7779620";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildAndroidComposition = buildPackages.buildPackages.androidenv.composeAndroidPackages {
|
|
|
|
includeNDK = true;
|
|
|
|
inherit ndkVersion;
|
|
|
|
};
|
|
|
|
|
|
|
|
androidComposition = androidenv.composeAndroidPackages {
|
|
|
|
includeNDK = true;
|
|
|
|
inherit ndkVersion;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
import ./androidndk-pkgs.nix {
|
2021-02-05 17:12:51 +00:00
|
|
|
inherit lib;
|
2020-09-25 04:45:31 +00:00
|
|
|
inherit (buildPackages)
|
2022-07-18 16:21:45 +00:00
|
|
|
makeWrapper autoPatchelfHook;
|
2020-09-25 04:45:31 +00: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;
|
2023-10-09 19:29:22 +00:00
|
|
|
targetAndroidndkPkgs = if targetPackages ? androidndkPkgs_23b then targetPackages.androidndkPkgs_23b else throw "androidndkPkgs_23b: no targetPackages, use `buildPackages.androidndkPkgs_23b";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
"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)
|
|
|
|
makeWrapper autoPatchelfHook;
|
|
|
|
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;
|
2023-10-09 19:29:22 +00:00
|
|
|
targetAndroidndkPkgs = if targetPackages ? androidndkPkgs_24 then targetPackages.androidndkPkgs_24 else throw "androidndkPkgs_24: no targetPackages, use `buildPackages.androidndkPkgs_24";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|