Making go build for any arm.

This commit is contained in:
Lluís Batlle i Rossell 2015-05-15 13:23:49 +00:00
parent 1e0ab1d4ce
commit 4b09501f23

View File

@ -74,7 +74,7 @@ stdenv.mkDerivation {
GOARCH = if stdenv.isDarwin then "amd64"
else if stdenv.system == "i686-linux" then "386"
else if stdenv.system == "x86_64-linux" then "amd64"
else if stdenv.system == "armv5tel-linux" then "arm"
else if stdenv.isArm then "arm"
else throw "Unsupported system";
GOARM = stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "5";
GO386 = 387; # from Arch: don't assume sse2 on i686