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 112 } 113 113 114 114 export -f buildGoDir # parallel needs to see the function 115 + if [ -z "$enableParallelBuilding" ]; then 116 + export NIX_BUILD_CORES=1 117 + fi 115 118 getGoDirs "" | parallel -j $NIX_BUILD_CORES buildGoDir install 116 119 117 120 runHook postBuild