diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-05-30 14:15:58 +0200 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-05-30 14:15:58 +0200 |
commit | 370738cbba04c06b4234d533fcc2120fd58bed15 (patch) | |
tree | 4e93e90e677513bd15b93bc12b4a3cd4c263fc72 | |
parent | 3892ca21ff9c6d508e32c40f9f5ac894accbf556 (diff) |
mpich: fix build on darwin
-rw-r--r-- | pkgs/development/libraries/mpich/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/libraries/mpich/default.nix b/pkgs/development/libraries/mpich/default.nix index 02e587661890b..bb7f9f5807d69 100644 --- a/pkgs/development/libraries/mpich/default.nix +++ b/pkgs/development/libraries/mpich/default.nix @@ -1,5 +1,6 @@ { stdenv, lib, fetchurl, perl, gfortran , openssh, hwloc, python3 +, darwin # either libfabric or ucx work for ch4backend on linux. On darwin, neither of # these libraries currently build so this argument is ignored on Darwin. , ch4backend @@ -44,10 +45,11 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ gfortran python3 ]; buildInputs = [ perl openssh hwloc ] ++ lib.optional (!stdenv.isDarwin) ch4backend - ++ lib.optional pmixSupport pmix; + ++ lib.optional pmixSupport pmix + ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Foundation; - - doCheck = true; + # test_double_serializer.test fails on darwin + doCheck = !stdenv.isDarwin; preFixup = '' # Ensure the default compilers are the ones mpich was built with |