From f4c841ae5ea4b08546489a4d93b3ea583f3049d6 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 30 May 2025 14:57:33 +0200 Subject: [PATCH] lib.systems: don't throw if go unsupported Better to have a value that can actually be checked for, rather than throwing, so optional Go support can be disabled when unsupported. --- lib/systems/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/systems/default.nix b/lib/systems/default.nix index 6b9da270bf5f..6f5be39d29ac 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -556,7 +556,7 @@ let "x86_64" = "amd64"; "wasm32" = "wasm"; } - .${final.parsed.cpu.name} or (throw "Unknown CPU variant ${final.parsed.cpu.name} by Go"); + .${final.parsed.cpu.name} or null; GOOS = if final.isWasi then "wasip1" else final.parsed.kernel.name; # See https://go.dev/wiki/GoArm