mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
[Backport release-26.05] zulu: fix eval on unsupported systems (#551053)
This commit is contained in:
@@ -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 =
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user