hdf5_1_10: enable cpp support (#359531)

This commit is contained in:
Thomas Gerbet 2024-11-30 13:51:46 +01:00 committed by GitHub
commit f40efe1ce9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -1809,7 +1809,7 @@ let
});
Rhdf5lib = let
hdf5 = pkgs.hdf5_1_10.overrideAttrs (attrs: {configureFlags = attrs.configureFlags ++ [ "--enable-cxx" ];});
hdf5 = pkgs.hdf5_1_10;
in old.Rhdf5lib.overrideAttrs (attrs: {
propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ hdf5.dev pkgs.libaec ];
patches = [ ./patches/Rhdf5lib.patch ];

View File

@ -2,6 +2,7 @@
, stdenv
, fetchurl
, removeReferencesTo
, cppSupport ? true
, zlibSupport ? true
, zlib
, enableShared ? !stdenv.hostPlatform.isStatic
@ -28,7 +29,8 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = optional zlibSupport zlib;
configureFlags = optional enableShared "--enable-shared"
++ optional javaSupport "--enable-java";
++ optional javaSupport "--enable-java"
++ optional cppSupport "--enable-cxx";
patches = [ ];
@ -49,6 +51,7 @@ stdenv.mkDerivation rec {
applications for managing, manipulating, viewing, and analyzing data in the HDF5 format.
'';
license = lib.licenses.bsd3; # Lawrence Berkeley National Labs BSD 3-Clause variant
maintainers = with lib.maintainers; [ stephen-huan ];
homepage = "https://www.hdfgroup.org/HDF5/";
platforms = lib.platforms.unix;
};