about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2021-12-10 08:29:09 +0000
committerGitHub <noreply@github.com>2021-12-10 08:29:09 +0000
commit9549b866e3988fd47d271fd556d321c53f6f2018 (patch)
treedb292cd4aaf6584eab42d7f7b2f2476bdc810d84 /pkgs
parentc28b4458d768ce5846963e27240b4f9fd1c11727 (diff)
parente42adefce1f431583ed38c829d033d83ee79f095 (diff)
Merge pull request #150005 from Mic92/go
go: add mipsel/riscv64/s390x support
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/compilers/go/1.16.nix5
-rw-r--r--pkgs/development/compilers/go/1.17.nix4
2 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/compilers/go/1.16.nix b/pkgs/development/compilers/go/1.16.nix
index dad133337e85b..f557c7b9e200c 100644
--- a/pkgs/development/compilers/go/1.16.nix
+++ b/pkgs/development/compilers/go/1.16.nix
@@ -40,8 +40,11 @@ let
     "armv5tel" = "arm";
     "armv6l" = "arm";
     "armv7l" = "arm";
-    "powerpc64le" = "ppc64le";
     "mips" = "mips";
+    "mipsel" = "mipsle";
+    "riscv64" = "riscv64";
+    "s390x" = "s390x";
+    "powerpc64le" = "ppc64le";
   }.${platform.parsed.cpu.name} or (throw "Unsupported system");
 
   # We need a target compiler which is still runnable at build time,
diff --git a/pkgs/development/compilers/go/1.17.nix b/pkgs/development/compilers/go/1.17.nix
index 1b46ba1aad62e..e16e78d21a356 100644
--- a/pkgs/development/compilers/go/1.17.nix
+++ b/pkgs/development/compilers/go/1.17.nix
@@ -40,6 +40,10 @@ let
     "armv5tel" = "arm";
     "armv6l" = "arm";
     "armv7l" = "arm";
+    "mips" = "mips";
+    "mipsel" = "mipsle";
+    "riscv64" = "riscv64";
+    "s390x" = "s390x";
     "powerpc64le" = "ppc64le";
   }.${platform.parsed.cpu.name} or (throw "Unsupported system");