Merge pull request #209659 from trofi/newsboat-build-speedup

newsboat: run parallel build for 'make' commands
This commit is contained in:
Sergei Trofimovich 2023-01-09 09:23:50 +00:00 committed by GitHub
commit 490966a55d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ rustPlatform.buildRustPackage rec {
++ lib.optionals stdenv.isDarwin [ Security Foundation libiconv gettext ]; ++ lib.optionals stdenv.isDarwin [ Security Foundation libiconv gettext ];
postBuild = '' postBuild = ''
make prefix="$out" make -j $NIX_BUILD_CORES prefix="$out"
''; '';
# https://github.com/NixOS/nixpkgs/pull/98471#issuecomment-703100014 . We set # https://github.com/NixOS/nixpkgs/pull/98471#issuecomment-703100014 . We set
@ -44,11 +44,11 @@ rustPlatform.buildRustPackage rec {
doCheck = true; doCheck = true;
preCheck = '' preCheck = ''
make test make -j $NIX_BUILD_CORES test
''; '';
postInstall = '' postInstall = ''
make prefix="$out" install make -j $NIX_BUILD_CORES prefix="$out" install
'' + lib.optionalString stdenv.isDarwin '' '' + lib.optionalString stdenv.isDarwin ''
for prog in $out/bin/*; do for prog in $out/bin/*; do
wrapProgram "$prog" --prefix DYLD_LIBRARY_PATH : "${stfl}/lib" wrapProgram "$prog" --prefix DYLD_LIBRARY_PATH : "${stfl}/lib"