netcdf: Make mpi build optional

This commit is contained in:
Jonas Heinrich 2025-04-27 17:09:02 +02:00
parent d9c222c814
commit a5a5805ce0

View file

@ -46,15 +46,17 @@ stdenv.mkDerivation rec {
libxml2 # xml2-config
];
buildInputs = [
curl
hdf5
libxml2
mpi
bzip2
libzip
zstd
] ++ lib.optional szipSupport szip;
buildInputs =
[
curl
hdf5
libxml2
bzip2
libzip
zstd
]
++ lib.optional szipSupport szip
++ lib.optional mpiSupport mpi;
strictDeps = true;