From 0237aa136fdc5d7805f0f87dced992dec5578f26 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 6 Aug 2013 00:44:10 +0200 Subject: [PATCH] R: ensure that run-time dependencies can be found --- pkgs/applications/science/math/R/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/math/R/default.nix b/pkgs/applications/science/math/R/default.nix index fd391b988c9..4c8204b37ee 100644 --- a/pkgs/applications/science/math/R/default.nix +++ b/pkgs/applications/science/math/R/default.nix @@ -36,9 +36,15 @@ stdenv.mkDerivation rec { --with-system-pcre --with-system-xz --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}" LDFLAGS="-L${gfortran.gcc}/lib" + RANLIB=$(type -p ranlib) + R_SHELL="${stdenv.shell}" ) echo "TCLLIBPATH=${tk}/lib" >>etc/Renviron.in '';