summary refs log tree commit diff
path: root/pkgs/development/compilers/go
diff options
context:
space:
mode:
authorEric Litak <elitak@gmail.com>2017-07-25 13:44:05 -0700
committerRobin Gloster <mail@glob.in>2017-08-11 23:02:20 +0200
commit723bd8b9c541acf546c825beffa1b241098f74d3 (patch)
tree3a7b5eeaf0f03674f4de37148b3d75c3091e1003 /pkgs/development/compilers/go
parent3a078da8dc4cb73baae55f8f50f8a94a453e5e3d (diff)
downloadnixlib-723bd8b9c541acf546c825beffa1b241098f74d3.tar
nixlib-723bd8b9c541acf546c825beffa1b241098f74d3.tar.gz
nixlib-723bd8b9c541acf546c825beffa1b241098f74d3.tar.bz2
nixlib-723bd8b9c541acf546c825beffa1b241098f74d3.tar.lz
nixlib-723bd8b9c541acf546c825beffa1b241098f74d3.tar.xz
nixlib-723bd8b9c541acf546c825beffa1b241098f74d3.tar.zst
nixlib-723bd8b9c541acf546c825beffa1b241098f74d3.zip
go: support for aarch64 via binary bootstrap
Diffstat (limited to 'pkgs/development/compilers/go')
-rw-r--r--pkgs/development/compilers/go/1.6.nix1
-rw-r--r--pkgs/development/compilers/go/1.7.nix1
-rw-r--r--pkgs/development/compilers/go/1.8.nix1
3 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/compilers/go/1.6.nix b/pkgs/development/compilers/go/1.6.nix
index 61408c0ebb34..0eebc92ee594 100644
--- a/pkgs/development/compilers/go/1.6.nix
+++ b/pkgs/development/compilers/go/1.6.nix
@@ -128,6 +128,7 @@ stdenv.mkDerivation rec {
            else if stdenv.system == "i686-linux" then "386"
            else if stdenv.system == "x86_64-linux" then "amd64"
            else if stdenv.isArm then "arm"
+           else if stdenv.isAarch64 then "arm64"
            else throw "Unsupported system";
   GOARM = stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "5";
   GO386 = 387; # from Arch: don't assume sse2 on i686
diff --git a/pkgs/development/compilers/go/1.7.nix b/pkgs/development/compilers/go/1.7.nix
index d7a824239b84..b1230da5a142 100644
--- a/pkgs/development/compilers/go/1.7.nix
+++ b/pkgs/development/compilers/go/1.7.nix
@@ -123,6 +123,7 @@ stdenv.mkDerivation rec {
            else if stdenv.system == "i686-linux" then "386"
            else if stdenv.system == "x86_64-linux" then "amd64"
            else if stdenv.isArm then "arm"
+           else if stdenv.isAarch64 then "arm64"
            else throw "Unsupported system";
   GOARM = optionalString (stdenv.system == "armv5tel-linux") "5";
   GO386 = 387; # from Arch: don't assume sse2 on i686
diff --git a/pkgs/development/compilers/go/1.8.nix b/pkgs/development/compilers/go/1.8.nix
index 8e0b1c7360f5..8a675b1b7761 100644
--- a/pkgs/development/compilers/go/1.8.nix
+++ b/pkgs/development/compilers/go/1.8.nix
@@ -128,6 +128,7 @@ stdenv.mkDerivation rec {
            else if stdenv.system == "i686-linux" then "386"
            else if stdenv.system == "x86_64-linux" then "amd64"
            else if stdenv.isArm then "arm"
+           else if stdenv.isAarch64 then "arm64"
            else throw "Unsupported system";
   GOARM = optionalString (stdenv.system == "armv5tel-linux") "5";
   GO386 = 387; # from Arch: don't assume sse2 on i686