Merge pull request #315869 from wegank/mpich-darwin

mpich: fix build on darwin
This commit is contained in:
Weijia Wang 2024-05-31 12:01:21 +02:00 committed by GitHub
commit 3b00e8456a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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