R: ensure that run-time dependencies can be found

This commit is contained in:
Peter Simons 2013-08-06 00:44:10 +02:00
parent f5f5f69ef0
commit 0237aa136f

View file

@ -36,9 +36,15 @@ stdenv.mkDerivation rec {
--with-system-pcre --with-system-pcre
--with-system-xz --with-system-xz
--with-ICU --with-ICU
R_SHELL="${stdenv.shell}" AR=$(type -p ar)
AWK=$(type -p gawk)
CC=$(type -p gcc)
CXX=$(type -p g++)
FC="${gfortran}/bin/gfortran" F77="${gfortran}/bin/gfortran"
JAVA_HOME="${jdk}" JAVA_HOME="${jdk}"
LDFLAGS="-L${gfortran.gcc}/lib" LDFLAGS="-L${gfortran.gcc}/lib"
RANLIB=$(type -p ranlib)
R_SHELL="${stdenv.shell}"
) )
echo "TCLLIBPATH=${tk}/lib" >>etc/Renviron.in echo "TCLLIBPATH=${tk}/lib" >>etc/Renviron.in
''; '';