[Backport release-26.05] zulu: fix eval on unsupported systems (#551053)

This commit is contained in:
Weijia Wang
2026-08-10 08:55:51 +00:00
committed by GitHub

View File

@@ -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 =
{