From d8d5d73bac777eab35e05e1347818b91f314a9f0 Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Fri, 24 Mar 2023 09:47:44 +1100 Subject: [PATCH] rPackages.Rhdf5lib: enable cxx bindings --- pkgs/development/r-modules/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix index 289bc4190daa..d85efc230546 100644 --- a/pkgs/development/r-modules/default.nix +++ b/pkgs/development/r-modules/default.nix @@ -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 ]; });