netcdf-mpi: fix compiler: use mpicc

Use mpicc to build when mpi support is required (instead of regular gcc)

(cherry picked from commit 396ffac28f948ebe4864551c67a01d1828e22ba6)
This commit is contained in:
Lancelot SIX
2016-09-08 17:07:40 +01:00
committed by obadz
parent 5537503dec
commit 85091e33b7
@@ -27,7 +27,7 @@ in stdenv.mkDerivation rec {
"--enable-dap" "--enable-dap"
"--enable-shared" "--enable-shared"
] ]
++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" ]); ++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" "CC=${mpi}/bin/mpicc" ]);
meta = { meta = {
platforms = stdenv.lib.platforms.unix; platforms = stdenv.lib.platforms.unix;