drop i686 support without simplifying code

This commit is contained in:
Alexander Sosedkin 2021-12-15 21:15:25 +01:00
parent 4ade388b9a
commit 154ad5a368
8 changed files with 13 additions and 15 deletions

View file

@ -12,8 +12,8 @@ with lib;
build = {
arch = mkOption {
type = types.enum [ "aarch64" "i686" ];
default = if pkgs.stdenv.isAarch64 then "aarch64" else "i686";
type = types.enum [ "aarch64" ];
default = "aarch64";
internal = true;
description = "Destination arch.";
};

View file

@ -86,7 +86,6 @@ in
let
crossCompiledPaths = {
aarch64 = "/nix/store/dapbgzbpl426jrhz4a2sdl096a8l98ad-proot-termux-aarch64-unknown-linux-android-unstable-2021-11-21";
i686 = "/nix/store/6nnjhrh8pgyxjnya72irahxpkbnxai1w-proot-termux-i686-unknown-linux-android-unstable-2021-11-21";
};
in
"${crossCompiledPaths.${config.build.arch}}";