libreoffice: trying to enable parallel building

I use the nix approach about the number of cores, as enableParallelBuilding.
This commit is contained in:
Lluís Batlle i Rossell 2012-09-03 15:53:07 +02:00
parent a683b2f6b4
commit 510b86f387

View file

@ -83,11 +83,13 @@ stdenv.mkDerivation rec {
QT4DIR = qt4;
KDE4DIR = kde4.kdelibs;
# I set --with-num-cpus=$NIX_BUILD_CORES, as it's the equivalent of
# enableParallelBuilding=true in this build system.
preConfigure = ''
# Needed to find genccode
PATH=$PATH:${icu}/sbin
configureFlagsArray=("--with-lang=${langsSpaces}")
configureFlagsArray=("--with-lang=${langsSpaces}" "--with-num-cpus=$NIX_BUILD_CORES")
'';
makeFlags = "SHELL=${bash}/bin/bash";
@ -117,7 +119,6 @@ stdenv.mkDerivation rec {
configureFlags = [
#"--enable-verbose"
"--with-max-jobs=1" "--with-num-cpus=1"
# Without these, configure does not finish
"--without-junit"