mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03: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:
parent
59649e0e80
commit
f4c841ae5e
1 changed files with 1 additions and 1 deletions
|
@ -556,7 +556,7 @@ let
|
||||||
"x86_64" = "amd64";
|
"x86_64" = "amd64";
|
||||||
"wasm32" = "wasm";
|
"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;
|
GOOS = if final.isWasi then "wasip1" else final.parsed.kernel.name;
|
||||||
|
|
||||||
# See https://go.dev/wiki/GoArm
|
# See https://go.dev/wiki/GoArm
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue