hdf5: 1.14.3 -> 1.14.4.2

Switch downloads to GitHub
This commit is contained in:
Markus Kowalewski 2024-05-06 17:59:32 +02:00
parent 7655996362
commit 20eab24a92

View File

@ -1,6 +1,6 @@
{ lib
, stdenv
, fetchurl
, fetchFromGitHub
, cmake
, removeReferencesTo
, cppSupport ? true
@ -28,21 +28,18 @@ assert !cppSupport || !mpiSupport;
let inherit (lib) optional optionals; in
stdenv.mkDerivation rec {
version = "1.14.3";
version = "1.14.4.2";
pname = "hdf5"
+ lib.optionalString cppSupport "-cpp"
+ lib.optionalString fortranSupport "-fortran"
+ lib.optionalString mpiSupport "-mpi"
+ lib.optionalString threadsafe "-threadsafe";
src = fetchurl {
url =
let
majorMinor = lib.versions.majorMinor version;
majorMinorPatch = with lib.versions; "${major version}.${minor version}.${patch version}";
in
"https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${majorMinor}/hdf5-${majorMinorPatch}/src/hdf5-${version}.tar.bz2";
sha256 = "sha256-lCXyJO110SgLtG1vJpI92Tj5BA5+rr9X5m7HNXwI+Rc=";
src = fetchFromGitHub {
owner = "HDFGroup";
repo = "hdf5";
rev = "hdf5_${version}";
sha256 = "sha256-nKrKGL/bMphJAm8OxvMV5hpBWBhHVNXANqtNv7ouvV0=";
};
passthru = {