diff options
Diffstat (limited to 'pkgs/development/libraries/science/math/p4est-sc/default.nix')
-rw-r--r-- | pkgs/development/libraries/science/math/p4est-sc/default.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/development/libraries/science/math/p4est-sc/default.nix b/pkgs/development/libraries/science/math/p4est-sc/default.nix index 00ce1e3b17c..338101b80b5 100644 --- a/pkgs/development/libraries/science/math/p4est-sc/default.nix +++ b/pkgs/development/libraries/science/math/p4est-sc/default.nix @@ -42,12 +42,18 @@ stdenv.mkDerivation { ++ lib.optional mpiSupport "--enable-mpi" ; - makeFlags = [ "V=0" ]; - checkFlags = lib.optional isOpenmpi "-j1"; - dontDisableStatic = true; enableParallelBuilding = true; - doCheck = !stdenv.isAarch64 && stdenv.hostPlatform == stdenv.buildPlatform; + makeFlags = [ "V=0" ]; + + preCheck = '' + export OMPI_MCA_rmaps_base_oversubscribe=1 + export HYDRA_IFACE=lo + ''; + + # disallow Darwin checks due to prototype incompatibility of qsort_r + # to be fixed in a future version of the source code + doCheck = !stdenv.isDarwin && stdenv.hostPlatform == stdenv.buildPlatform; meta = { branch = "prev3-develop"; |