hdf5-mpi,hdf5-cpp,hdf5-fortran,hdf5-threadsafe: remove appendToName to
have a consistent package name for repology
This commit is contained in:
parent
80de80f9cf
commit
8250f0f4ea
|
@ -15,6 +15,7 @@
|
||||||
, javaSupport ? false
|
, javaSupport ? false
|
||||||
, jdk
|
, jdk
|
||||||
, usev110Api ? false
|
, usev110Api ? false
|
||||||
|
, threadsafe ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# cpp and mpi options are mutually exclusive
|
# cpp and mpi options are mutually exclusive
|
||||||
|
@ -25,9 +26,14 @@ let inherit (lib) optional optionals; in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.12.1";
|
version = "1.12.1";
|
||||||
pname = "hdf5";
|
pname = "hdf5"
|
||||||
|
+ lib.optionalString cppSupport "-cpp"
|
||||||
|
+ lib.optionalString fortranSupport "-fortran"
|
||||||
|
+ lib.optionalString mpiSupport "-mpi"
|
||||||
|
+ lib.optionalString threadsafe "-threadsafe";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${lib.versions.majorMinor version}/${pname}-${version}/src/${pname}-${version}.tar.bz2";
|
url = "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${lib.versions.majorMinor version}/hdf5-${version}/src/hdf5-${version}.tar.bz2";
|
||||||
sha256 = "sha256-qvn1MrPtqD09Otyfi0Cpt2MVIhj6RTScO8d1Asofjxw=";
|
sha256 = "sha256-qvn1MrPtqD09Otyfi0Cpt2MVIhj6RTScO8d1Asofjxw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -63,7 +69,9 @@ stdenv.mkDerivation rec {
|
||||||
++ optionals mpiSupport [ "--enable-parallel" "CC=${mpi}/bin/mpicc" ]
|
++ optionals mpiSupport [ "--enable-parallel" "CC=${mpi}/bin/mpicc" ]
|
||||||
++ optional enableShared "--enable-shared"
|
++ optional enableShared "--enable-shared"
|
||||||
++ optional javaSupport "--enable-java"
|
++ optional javaSupport "--enable-java"
|
||||||
++ optional usev110Api "--with-default-api-version=v110";
|
++ optional usev110Api "--with-default-api-version=v110"
|
||||||
|
# hdf5 hl (High Level) library is not considered stable with thread safety and should be disabled.
|
||||||
|
++ optionals threadsafe [ "--enable-threadsafe" "--disable-hl" ];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./bin-mv.patch
|
./bin-mv.patch
|
||||||
|
|
|
@ -6395,24 +6395,13 @@ with pkgs;
|
||||||
|
|
||||||
hdf5_1_10 = callPackage ../tools/misc/hdf5/1.10.nix { };
|
hdf5_1_10 = callPackage ../tools/misc/hdf5/1.10.nix { };
|
||||||
|
|
||||||
hdf5-mpi = appendToName "mpi" (hdf5.override {
|
hdf5-mpi = hdf5.override { mpiSupport = true; };
|
||||||
mpiSupport = true;
|
|
||||||
});
|
|
||||||
|
|
||||||
hdf5-cpp = appendToName "cpp" (hdf5.override {
|
hdf5-cpp = hdf5.override { cppSupport = true; };
|
||||||
cppSupport = true;
|
|
||||||
});
|
|
||||||
|
|
||||||
hdf5-fortran = appendToName "fortran" (hdf5.override {
|
hdf5-fortran = hdf5.override { fortranSupport = true; };
|
||||||
fortranSupport = true;
|
|
||||||
});
|
|
||||||
|
|
||||||
hdf5-threadsafe = appendToName "threadsafe" (hdf5.overrideAttrs (oldAttrs: {
|
hdf5-threadsafe = hdf5.override { threadsafe = true; };
|
||||||
# Threadsafe hdf5
|
|
||||||
# However, hdf5 hl (High Level) library is not considered stable
|
|
||||||
# with thread safety and should be disabled.
|
|
||||||
configureFlags = oldAttrs.configureFlags ++ ["--enable-threadsafe" "--disable-hl" ];
|
|
||||||
}));
|
|
||||||
|
|
||||||
hdf5-blosc = callPackage ../development/libraries/hdf5-blosc { };
|
hdf5-blosc = callPackage ../development/libraries/hdf5-blosc { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue