diff options
author | Lancelot SIX <lsix@lancelotsix.com> | 2016-09-05 16:27:35 +0200 |
---|---|---|
committer | obadz <obadz-git@obadz.com> | 2016-09-08 17:07:40 +0100 |
commit | 85091e33b767d08c2bd033f77ae76c85369400f4 (patch) | |
tree | 931536633611163484049de44755e5548c321910 /pkgs/development/libraries/netcdf | |
parent | 5537503dec1af5dfa6392b7673420042878d659f (diff) | |
download | nixpkgs-85091e33b767d08c2bd033f77ae76c85369400f4.tar nixpkgs-85091e33b767d08c2bd033f77ae76c85369400f4.tar.gz nixpkgs-85091e33b767d08c2bd033f77ae76c85369400f4.tar.bz2 nixpkgs-85091e33b767d08c2bd033f77ae76c85369400f4.tar.lz nixpkgs-85091e33b767d08c2bd033f77ae76c85369400f4.tar.xz nixpkgs-85091e33b767d08c2bd033f77ae76c85369400f4.tar.zst nixpkgs-85091e33b767d08c2bd033f77ae76c85369400f4.zip |
netcdf-mpi: fix compiler: use mpicc
Use mpicc to build when mpi support is required (instead of regular gcc) (cherry picked from commit 396ffac28f948ebe4864551c67a01d1828e22ba6)
Diffstat (limited to 'pkgs/development/libraries/netcdf')
-rw-r--r-- | pkgs/development/libraries/netcdf/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/netcdf/default.nix b/pkgs/development/libraries/netcdf/default.nix index 06137bdad1f..5e296e8d754 100644 --- a/pkgs/development/libraries/netcdf/default.nix +++ b/pkgs/development/libraries/netcdf/default.nix @@ -27,7 +27,7 @@ in stdenv.mkDerivation rec { "--enable-dap" "--enable-shared" ] - ++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" ]); + ++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" "CC=${mpi}/bin/mpicc" ]); meta = { platforms = stdenv.lib.platforms.unix; |