go builder: respect enableParallelBuilding

It was parallelizing for $NIX_BUILD_CORES regardless of
enableParallelBuilding.

Changed files
+3
pkgs
development
go-modules
generic
+3
pkgs/development/go-modules/generic/default.nix
··· 112 } 113 114 export -f buildGoDir # parallel needs to see the function 115 getGoDirs "" | parallel -j $NIX_BUILD_CORES buildGoDir install 116 117 runHook postBuild
··· 112 } 113 114 export -f buildGoDir # parallel needs to see the function 115 + if [ -z "$enableParallelBuilding" ]; then 116 + export NIX_BUILD_CORES=1 117 + fi 118 getGoDirs "" | parallel -j $NIX_BUILD_CORES buildGoDir install 119 120 runHook postBuild