From 1690636bbe990711e0ab57adae4e7f8fb0774d45 Mon Sep 17 00:00:00 2001 From: liberodark Date: Mon, 10 Aug 2026 10:33:47 +0200 Subject: [PATCH] zulu: fix eval on unsupported systems (cherry picked from commit 5e4b381048d9244632c6ec527d64138a66b436da) --- pkgs/development/compilers/zulu/common.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/compilers/zulu/common.nix b/pkgs/development/compilers/zulu/common.nix index 46724ffea83c..0038ab2e7bf4 100644 --- a/pkgs/development/compilers/zulu/common.nix +++ b/pkgs/development/compilers/zulu/common.nix @@ -32,16 +32,14 @@ ffmpeg, }: let - dist = - dists.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); + dist = dists.${stdenv.hostPlatform.system} or (builtins.head (builtins.attrValues dists)); arch = { "aarch64" = "aarch64"; "x86_64" = "x64"; } - .${stdenv.hostPlatform.parsed.cpu.name} - or (throw "Unsupported architecture: ${stdenv.hostPlatform.parsed.cpu.name}"); + .${stdenv.hostPlatform.parsed.cpu.name} or "unsupported"; platform = {