about summary refs log tree commit diff
path: root/pkgs/development/libraries/stxxl
diff options
context:
space:
mode:
authorSebastián Mancilla <smancill@smancill.dev>2021-11-18 13:43:52 -0300
committerSebastián Mancilla <smancill@smancill.dev>2021-11-18 13:47:34 -0300
commit53fd52dca90798b0fae2bb5381e3f4e3bcb73a57 (patch)
tree4d55f96a103827db0b5c1a907f15394e48e2ceb9 /pkgs/development/libraries/stxxl
parent8ea3df51cd106cbde64692a7a54783758288e6db (diff)
stxxl: fix build on darwin
Do not enable OpenMP support on Darwin. Since GNU Parallel requires
OpenMP, also disable it on Darwin.
Diffstat (limited to 'pkgs/development/libraries/stxxl')
-rw-r--r--pkgs/development/libraries/stxxl/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/libraries/stxxl/default.nix b/pkgs/development/libraries/stxxl/default.nix
index 5cc0e6037a23d..391424ee2c93d 100644
--- a/pkgs/development/libraries/stxxl/default.nix
+++ b/pkgs/development/libraries/stxxl/default.nix
@@ -2,7 +2,7 @@
 , stdenv
 , fetchFromGitHub
 , cmake
-, parallel ? true
+, parallelSupport ? (!stdenv.isDarwin)
 }:
 
 let
@@ -25,11 +25,12 @@ stdenv.mkDerivation rec {
   cmakeFlags = [
     "-DBUILD_SHARED_LIBS=ON"
     "-DBUILD_STATIC_LIBS=OFF"
-    (mkFlag parallel "USE_GNU_PARALLEL")
+    (mkFlag parallelSupport "USE_GNU_PARALLEL")
+    (mkFlag parallelSupport "USE_OPENMP")
   ];
 
   passthru = {
-    inherit parallel;
+    inherit parallelSupport;
   };
 
   meta = with lib; {