git.iko.soy/typeable/nixpkgs
on master help sign in
go builder: respect enableParallelBuilding

It was parallelizing for $NIX_BUILD_CORES regardless of enableParallelBuilding.

commit082f2e6938df4e7991856ccca35bb558cdee03ef authorLluís Batlle i Rossell <viric@viric.name> dateThu 21 Jan 2016, 15:05 (11 years ago) parent6349f50
1 file changed+3
pkgs/development/go-modules/generic/default.nix+3
pkgs/development/go-modules/generic/default.nix+3
@@ -112,6 +112,9 @@ go.stdenv.mkDerivation (
112112 }
113113
114114 export -f buildGoDir # parallel needs to see the function
115+ if [ -z "$enableParallelBuilding" ]; then
116+ export NIX_BUILD_CORES=1
117+ fi
115118 getGoDirs "" | parallel -j $NIX_BUILD_CORES buildGoDir install
116119
117120 runHook postBuild