diff options
Diffstat (limited to 'pkgs/development/compilers/go/default.nix')
-rw-r--r-- | pkgs/development/compilers/go/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/compilers/go/default.nix b/pkgs/development/compilers/go/default.nix index 60ea7981931d..955daa0ad9fc 100644 --- a/pkgs/development/compilers/go/default.nix +++ b/pkgs/development/compilers/go/default.nix @@ -54,9 +54,9 @@ stdenv.mkDerivation { patches = [ ./cacert.patch ]; GOOS = "linux"; - GOARCH = if (stdenv.system == "i686-linux") then "386" - else if (stdenv.system == "x86_64-linux") then "amd64" - else if (stdenv.system == "armv5tel-linux") then "arm" + GOARCH = 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 throw "Unsupported system"; GOARM = stdenv.lib.optionalString (stdenv.system == "armv5tel-linux") "5"; @@ -74,7 +74,7 @@ stdenv.mkDerivation { for a in go gofmt godoc; do wrapProgram "$out/bin/$a" \ --set "GOROOT" $out/share/go \ - ${if (stdenv.system == "armv5tel-linux") then "--set GOARM $GOARM" else ""} + ${if stdenv.system == "armv5tel-linux" then "--set GOARM $GOARM" else ""} done # Copy the emacs configuration for Go files. |