mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
go builder: respect enableParallelBuilding
It was parallelizing for $NIX_BUILD_CORES regardless of enableParallelBuilding.
This commit is contained in:
parent
6349f50bde
commit
082f2e6938
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user