pkgs.hdf5: Add c++ and fortran variants
This commit is contained in:
parent
947fdd6b7e
commit
924c38214d
|
@ -1,6 +1,8 @@
|
|||
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, cpp ? false
|
||||
, gfortran ? null
|
||||
, zlib ? null
|
||||
, szip ? null
|
||||
, mpi ? null
|
||||
|
@ -20,6 +22,7 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
buildInputs = []
|
||||
++ stdenv.lib.optional (gfortran != null) gfortran
|
||||
++ stdenv.lib.optional (zlib != null) zlib
|
||||
++ stdenv.lib.optional (szip != null) szip;
|
||||
|
||||
|
@ -27,6 +30,8 @@ stdenv.mkDerivation rec {
|
|||
++ stdenv.lib.optional (mpi != null) mpi;
|
||||
|
||||
configureFlags = "
|
||||
${if cpp then "--enable-cxx" else ""}
|
||||
${if gfortran != null then "--enable-fortran" else ""}
|
||||
${if szip != null then "--with-szlib=${szip}" else ""}
|
||||
${if mpi != null then "--enable-parallel" else ""}
|
||||
${if enableShared then "--enable-shared" else ""}
|
||||
|
|
|
@ -1814,6 +1814,7 @@ let
|
|||
hddtemp = callPackage ../tools/misc/hddtemp { };
|
||||
|
||||
hdf5 = callPackage ../tools/misc/hdf5 {
|
||||
gfortran = null;
|
||||
szip = null;
|
||||
mpi = null;
|
||||
};
|
||||
|
@ -1823,6 +1824,14 @@ let
|
|||
mpi = pkgs.openmpi;
|
||||
};
|
||||
|
||||
hdf5-cpp = hdf5.override {
|
||||
cpp = true;
|
||||
};
|
||||
|
||||
hdf5-fortran = hdf5.override {
|
||||
inherit gfortran;
|
||||
};
|
||||
|
||||
heimdall = callPackage ../tools/misc/heimdall { };
|
||||
|
||||
hevea = callPackage ../tools/typesetting/hevea { };
|
||||
|
|
Loading…
Reference in a new issue