mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
go: support for aarch64 via binary bootstrap
This commit is contained in:
parent
3a078da8dc
commit
723bd8b9c5
4 changed files with 15 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue