Merge pull request #209659 from trofi/newsboat-build-speedup
newsboat: run parallel build for 'make' commands
This commit is contained in:
commit
490966a55d
1 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ rustPlatform.buildRustPackage rec {
|
|||
++ lib.optionals stdenv.isDarwin [ Security Foundation libiconv gettext ];
|
||||
|
||||
postBuild = ''
|
||||
make prefix="$out"
|
||||
make -j $NIX_BUILD_CORES prefix="$out"
|
||||
'';
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/pull/98471#issuecomment-703100014 . We set
|
||||
|
@ -44,11 +44,11 @@ rustPlatform.buildRustPackage rec {
|
|||
doCheck = true;
|
||||
|
||||
preCheck = ''
|
||||
make test
|
||||
make -j $NIX_BUILD_CORES test
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
make prefix="$out" install
|
||||
make -j $NIX_BUILD_CORES prefix="$out" install
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
for prog in $out/bin/*; do
|
||||
wrapProgram "$prog" --prefix DYLD_LIBRARY_PATH : "${stfl}/lib"
|
||||
|
|
Loading…
Reference in a new issue