go: support for aarch64 via binary bootstrap
This commit is contained in:
parent
3a078da8dc
commit
723bd8b9c5
@ -128,6 +128,7 @@ stdenv.mkDerivation rec {
|
|||||||
else if stdenv.system == "i686-linux" then "386"
|
else if stdenv.system == "i686-linux" then "386"
|
||||||
else if stdenv.system == "x86_64-linux" then "amd64"
|
else if stdenv.system == "x86_64-linux" then "amd64"
|
||||||
else if stdenv.isArm then "arm"
|
else if stdenv.isArm then "arm"
|
||||||
|
else if stdenv.isAarch64 then "arm64"
|
||||||
else throw "Unsupported system";
|
else throw "Unsupported system";
|
||||||
GOARM = stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "5";
|
GOARM = stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "5";
|
||||||
GO386 = 387; # from Arch: don't assume sse2 on i686
|
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 == "i686-linux" then "386"
|
||||||
else if stdenv.system == "x86_64-linux" then "amd64"
|
else if stdenv.system == "x86_64-linux" then "amd64"
|
||||||
else if stdenv.isArm then "arm"
|
else if stdenv.isArm then "arm"
|
||||||
|
else if stdenv.isAarch64 then "arm64"
|
||||||
else throw "Unsupported system";
|
else throw "Unsupported system";
|
||||||
GOARM = optionalString (stdenv.system == "armv5tel-linux") "5";
|
GOARM = optionalString (stdenv.system == "armv5tel-linux") "5";
|
||||||
GO386 = 387; # from Arch: don't assume sse2 on i686
|
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 == "i686-linux" then "386"
|
||||||
else if stdenv.system == "x86_64-linux" then "amd64"
|
else if stdenv.system == "x86_64-linux" then "amd64"
|
||||||
else if stdenv.isArm then "arm"
|
else if stdenv.isArm then "arm"
|
||||||
|
else if stdenv.isAarch64 then "arm64"
|
||||||
else throw "Unsupported system";
|
else throw "Unsupported system";
|
||||||
GOARM = optionalString (stdenv.system == "armv5tel-linux") "5";
|
GOARM = optionalString (stdenv.system == "armv5tel-linux") "5";
|
||||||
GO386 = 387; # from Arch: don't assume sse2 on i686
|
GO386 = 387; # from Arch: don't assume sse2 on i686
|
||||||
|
@ -5596,9 +5596,18 @@ with pkgs;
|
|||||||
|
|
||||||
glslang = callPackage ../development/compilers/glslang { };
|
glslang = callPackage ../development/compilers/glslang { };
|
||||||
|
|
||||||
go_bootstrap = callPackage ../development/compilers/go/1.4.nix {
|
go_bootstrap = if stdenv.isAarch64 then
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
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 {
|
go_1_6 = callPackage ../development/compilers/go/1.6.nix {
|
||||||
inherit (darwin.apple_sdk.frameworks) Security Foundation;
|
inherit (darwin.apple_sdk.frameworks) Security Foundation;
|
||||||
|
Loading…
Reference in New Issue
Block a user