mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 11:30:35 +08:00
go builder: respect enableParallelBuilding
It was parallelizing for $NIX_BUILD_CORES regardless of enableParallelBuilding.
This commit is contained in:
@@ -112,6 +112,9 @@ go.stdenv.mkDerivation (
|
||||
}
|
||||
|
||||
export -f buildGoDir # parallel needs to see the function
|
||||
if [ -z "$enableParallelBuilding" ]; then
|
||||
export NIX_BUILD_CORES=1
|
||||
fi
|
||||
getGoDirs "" | parallel -j $NIX_BUILD_CORES buildGoDir install
|
||||
|
||||
runHook postBuild
|
||||
|
||||
Reference in New Issue
Block a user