musl: set arch for aarch64

Fixes build of pkgsMusl.temurin-bin-21 on aarch64-unknown-linux-musl, which is needed for bootstrapping jdk21

Change-Id: I36ab11e8ba1787285986ee9462ed6d0f5edfa6fe
This commit is contained in:
Yureka 2024-11-25 17:44:10 +01:00
parent af64a865e4
commit 45556cbdb8

View File

@ -37,9 +37,11 @@ let
arch = if stdenv.hostPlatform.isx86_64
then "x86_64"
else if stdenv.hostPlatform.isx86_32
then "i386"
else null;
else if stdenv.hostPlatform.isx86_32
then "i386"
else if stdenv.hostPlatform.isAarch64
then "aarch64"
else null;
in
stdenv.mkDerivation rec {