rPackages.Rhdf5lib: enable cxx bindings

This commit is contained in:
Justin Bedo 2023-03-24 09:47:44 +11:00
parent 445df9ef48
commit d8d5d73bac
No known key found for this signature in database
GPG key ID: 2C18202C56C182BD

View file

@ -1319,13 +1319,16 @@ let
RGL_USE_NULL = "true";
});
Rhdf5lib = old.Rhdf5lib.overrideAttrs (attrs: {
propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ pkgs.hdf5_1_10.dev pkgs.libaec ];
Rhdf5lib = let
hdf5 = pkgs.hdf5_1_10.overrideAttrs (attrs: {configureFlags = attrs.configureFlags ++ ["--enable-cxx"];});
in old.Rhdf5lib.overrideAttrs (attrs: {
propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ hdf5.dev pkgs.libaec ];
patches = [ ./patches/Rhdf5lib.patch ];
passthru.hdf5 = hdf5;
});
rhdf5filters = old.rhdf5filters.overrideAttrs (attrs: {
propagatedBuildInputs = with pkgs; attrs.propagatedBuildInputs ++ [ (hdf5-blosc.override {hdf5 = hdf5_1_10;}) ];
propagatedBuildInputs = with pkgs; attrs.propagatedBuildInputs ++ [ (hdf5-blosc.override {hdf5 = self.Rhdf5lib.hdf5;}) ];
patches = [ ./patches/rhdf5filters.patch ];
});