diff options
author | Roberto Di Remigio <roberto.diremigio@gmail.com> | 2017-11-18 21:45:59 +0100 |
---|---|---|
committer | Roberto Di Remigio <roberto.diremigio@gmail.com> | 2017-11-21 22:08:06 +0100 |
commit | 98a748485ea6ae12027a3725b46fda5439b6e33b (patch) | |
tree | 05f4292385f21c225b450750fb71e1931705ba32 | |
parent | 443faefdfb251d4b02fd5b1265e66a015e082aa6 (diff) | |
download | nixlib-98a748485ea6ae12027a3725b46fda5439b6e33b.tar nixlib-98a748485ea6ae12027a3725b46fda5439b6e33b.tar.gz nixlib-98a748485ea6ae12027a3725b46fda5439b6e33b.tar.bz2 nixlib-98a748485ea6ae12027a3725b46fda5439b6e33b.tar.lz nixlib-98a748485ea6ae12027a3725b46fda5439b6e33b.tar.xz nixlib-98a748485ea6ae12027a3725b46fda5439b6e33b.tar.zst nixlib-98a748485ea6ae12027a3725b46fda5439b6e33b.zip |
hdf5_1_8: add fortran2003 option
-rw-r--r-- | pkgs/tools/misc/hdf5/1_8.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/misc/hdf5/1_8.nix b/pkgs/tools/misc/hdf5/1_8.nix index ea8a77c381b2..14c8ca234331 100644 --- a/pkgs/tools/misc/hdf5/1_8.nix +++ b/pkgs/tools/misc/hdf5/1_8.nix @@ -4,6 +4,7 @@ , removeReferencesTo , cpp ? false , gfortran ? null +, fortran2003 ? false , zlib ? null , szip ? null , mpi ? null @@ -14,6 +15,9 @@ # (--enable-unsupported could be used to force the build) assert !cpp || mpi == null; +# Need a Fortran compiler for Fortran2003 bindings +assert fortran2003 -> gfortran != null; + # No point splitting version 1.8.18 into multiple outputs. # The library /lib/libhdf5.so has a reference to gcc-wrapper @@ -45,6 +49,7 @@ stdenv.mkDerivation rec { configureFlags = [] ++ optional cpp "--enable-cxx" ++ optional (gfortran != null) "--enable-fortran" + ++ optional fortran2003 "--enable-fortran2003" ++ optional (szip != null) "--with-szlib=${szip}" ++ optionals (mpi != null) ["--enable-parallel" "CC=${mpi}/bin/mpicc"] ++ optional enableShared "--enable-shared"; |