From 45556cbdb8eb098c55e74a56267a1176a3db1bc1 Mon Sep 17 00:00:00 2001 From: Yureka Date: Mon, 25 Nov 2024 17:44:10 +0100 Subject: [PATCH] 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 --- pkgs/by-name/mu/musl/package.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/mu/musl/package.nix b/pkgs/by-name/mu/musl/package.nix index 4bb6382d6a69..0ec6f603d898 100644 --- a/pkgs/by-name/mu/musl/package.nix +++ b/pkgs/by-name/mu/musl/package.nix @@ -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 {