1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-08 02:38:11 +09:00

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.
This commit is contained in:
Alyssa Ross 2025-05-30 14:57:33 +02:00
parent 59649e0e80
commit f4c841ae5e
No known key found for this signature in database
GPG key ID: 5B459184230FF0A2

View file

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