about summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorJosef Kemetmüller <josef.kemetmueller@gmail.com>2020-03-10 17:16:17 +0100
committerJosef Kemetmüller <josef.kemetmueller@gmail.com>2020-03-10 17:16:17 +0100
commit1cc9b2501df23ac663fa61acce79606a12dc9540 (patch)
treec65492e0f64e97590759f4061105584adb199b98 /pkgs/development/libraries
parent1be9d1e8b038bbe14bd7fe276108eb902263ca66 (diff)
downloadnixlib-1cc9b2501df23ac663fa61acce79606a12dc9540.tar
nixlib-1cc9b2501df23ac663fa61acce79606a12dc9540.tar.gz
nixlib-1cc9b2501df23ac663fa61acce79606a12dc9540.tar.bz2
nixlib-1cc9b2501df23ac663fa61acce79606a12dc9540.tar.lz
nixlib-1cc9b2501df23ac663fa61acce79606a12dc9540.tar.xz
nixlib-1cc9b2501df23ac663fa61acce79606a12dc9540.tar.zst
nixlib-1cc9b2501df23ac663fa61acce79606a12dc9540.zip
suitesparse: Enable parallel building
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/science/math/suitesparse/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/science/math/suitesparse/default.nix b/pkgs/development/libraries/science/math/suitesparse/default.nix
index a6c803be260a..f72574cff583 100644
--- a/pkgs/development/libraries/science/math/suitesparse/default.nix
+++ b/pkgs/development/libraries/science/math/suitesparse/default.nix
@@ -56,6 +56,7 @@ stdenv.mkDerivation rec {
 
     # Build individual shared libraries
     make library        \
+        JOBS=$NIX_BUILD_CORES \
         BLAS=-lopenblas \
         LAPACK=""       \
         ${stdenv.lib.optionalString openblas.blas64 "CFLAGS=-DBLAS64"}
@@ -64,7 +65,7 @@ stdenv.mkDerivation rec {
     # Bundling is done by building the static libraries, extracting objects from
     # them and combining the objects into one shared library.
     mkdir -p static
-    make static AR_TARGET=$(pwd)/static/'$(LIBRARY).a'
+    make static JOBS=$NIX_BUILD_CORES AR_TARGET=$(pwd)/static/'$(LIBRARY).a'
     (
         cd static
         for i in lib*.a; do