Merge pull request #105787 from danieldk/build-rust-crate-njobs

buildRustCrate: set NUM_JOBS to NIX_BUILD_CORES
This commit is contained in:
Daniël de Kok 2020-12-16 13:38:43 +01:00 committed by GitHub
commit 00941cd747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ in ''
export CARGO_PKG_VERSION_PATCH=${lib.elemAt version 2}
export CARGO_PKG_VERSION_PRE="${versionPre}"
export CARGO_PKG_HOMEPAGE="${crateHomepage}"
export NUM_JOBS=1
export NUM_JOBS=$NIX_BUILD_CORES
export RUSTC="rustc"
export RUSTDOC="rustdoc"