Remove unnecessary parentheses around if conditions
Pet peeve...
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user