RPM build: Use parallel make

This commit is contained in:
Eelco Dolstra 2017-02-21 14:52:36 +01:00
parent bb6656b8a2
commit e4dd7dadf4
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
2 changed files with 3 additions and 2 deletions

View file

@ -107,7 +107,7 @@ extraFlags=
%configure --localstatedir=/nix/var \ %configure --localstatedir=/nix/var \
--docdir=%{_defaultdocdir}/%{name}-doc-%{version} \ --docdir=%{_defaultdocdir}/%{name}-doc-%{version} \
$extraFlags $extraFlags
make %{?_smp_flags} make -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES
%{_emacs_bytecompile} misc/emacs/nix-mode.el %{_emacs_bytecompile} misc/emacs/nix-mode.el

View file

@ -284,9 +284,10 @@ let
{ extraPackages = { extraPackages =
[ "perl-DBD-SQLite" "perl-devel" "sqlite" "sqlite-devel" "bzip2-devel" "emacs" "libcurl-devel" "openssl-devel" "xz-devel" ] [ "perl-DBD-SQLite" "perl-devel" "sqlite" "sqlite-devel" "bzip2-devel" "emacs" "libcurl-devel" "openssl-devel" "xz-devel" ]
++ extraPackages; }; ++ extraPackages; };
memSize = 1024; memSize = 8192;
meta.schedulingPriority = 50; meta.schedulingPriority = 50;
postRPMInstall = "cd /tmp/rpmout/BUILD/nix-* && make installcheck"; postRPMInstall = "cd /tmp/rpmout/BUILD/nix-* && make installcheck";
enableParallelBuilding = true;
}; };