Skip to content

Commit

Permalink
go: support for aarch64 via binary bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
elitak authored and globin committed Aug 11, 2017
1 parent 3a078da commit 723bd8b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions pkgs/development/compilers/go/1.6.nix
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/go/1.7.nix
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/go/1.8.nix
Expand Up @@ -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
Expand Down
15 changes: 12 additions & 3 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -5596,9 +5596,18 @@ with pkgs;

glslang = callPackage ../development/compilers/glslang { };

go_bootstrap = callPackage ../development/compilers/go/1.4.nix {
inherit (darwin.apple_sdk.frameworks) Security;
};
go_bootstrap = if stdenv.isAarch64 then
srcOnly {
name = "go-1.8-linux-arm64-bootstrap";
src = fetchurl {
url = "https://cache.xor.us/go-1.8-linux-arm64-bootstrap.tar.xz";
sha256 = "0sk6g03x9gbxk2k1djnrgy8rzw1zc5f6ssw0hbxk6kjr85lpmld6";
};
}
else
callPackage ../development/compilers/go/1.4.nix {
inherit (darwin.apple_sdk.frameworks) Security;
};

go_1_6 = callPackage ../development/compilers/go/1.6.nix {
inherit (darwin.apple_sdk.frameworks) Security Foundation;
Expand Down

0 comments on commit 723bd8b

Please sign in to comment.