git.iko.soy/typeable/nixpkgs
on master help sign in
Making go build for any arm.
4b09501Lluís Batlle i Rossell
pkgs/development/compilers/go/1.4.nix+1−1
@@ -74,7 +74,7 @@ stdenv.mkDerivation {
74 GOARCH = if stdenv.isDarwin then "amd64"
74 GOARCH = if stdenv.isDarwin then "amd64"
75 else if stdenv.system == "i686-linux" then "386"
75 else if stdenv.system == "i686-linux" then "386"
76 else if stdenv.system == "x86_64-linux" then "amd64"
76 else if stdenv.system == "x86_64-linux" then "amd64"
77− else if stdenv.system == "armv5tel-linux" then "arm"
77+ else if stdenv.isArm then "arm"
78 else throw "Unsupported system";
78 else throw "Unsupported system";
79 GOARM = stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "5";
79 GOARM = stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "5";
80 GO386 = 387; # from Arch: don't assume sse2 on i686
80 GO386 = 387; # from Arch: don't assume sse2 on i686