rPackages.rhdf5: fix installation

Fix #42878
This commit is contained in:
Markus Ankenbrand 2018-07-02 17:00:16 +02:00
parent a444ed3870
commit 9eeea0b9ef
2 changed files with 16 additions and 0 deletions

View File

@ -749,6 +749,10 @@ let
patches = [ ./patches/BayesXsrc.patch ];
});
rhdf5 = old.rhdf5.overrideDerivation (attrs: {
patches = [ ./patches/rhdf5.patch ];
});
rJava = old.rJava.overrideDerivation (attrs: {
preConfigure = ''
export JAVA_CPPFLAGS=-I${pkgs.jdk}/include/

View File

@ -0,0 +1,12 @@
diff --git a/configure b/configure
index e3e21e8..3d947b6 100755
--- a/configure
+++ b/configure
@@ -2859,6 +2859,7 @@ fi;
echo "building the bundled hdf5 library...";
cd ${BASEPBNAME};
+sed -i 's#/bin/mv#mv#' configure
./configure --with-pic --enable-shared=no CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" CC="${CC}" CFLAGS="${CFLAGS}" F77="${F77}"
$MAKE lib
cd ../../