summary refs log tree commit diff
path: root/pkgs/applications/science/math/R
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2013-08-06 00:44:10 +0200
committerPeter Simons <simons@cryp.to>2013-08-06 00:44:20 +0200
commit0237aa136fdc5d7805f0f87dced992dec5578f26 (patch)
tree8063edb6b2ff15091b8f0eb7903463d5fa341f77 /pkgs/applications/science/math/R
parentf5f5f69ef0de289b817e552311bad988c209c0f9 (diff)
downloadnixlib-0237aa136fdc5d7805f0f87dced992dec5578f26.tar
nixlib-0237aa136fdc5d7805f0f87dced992dec5578f26.tar.gz
nixlib-0237aa136fdc5d7805f0f87dced992dec5578f26.tar.bz2
nixlib-0237aa136fdc5d7805f0f87dced992dec5578f26.tar.lz
nixlib-0237aa136fdc5d7805f0f87dced992dec5578f26.tar.xz
nixlib-0237aa136fdc5d7805f0f87dced992dec5578f26.tar.zst
nixlib-0237aa136fdc5d7805f0f87dced992dec5578f26.zip
R: ensure that run-time dependencies can be found
Diffstat (limited to 'pkgs/applications/science/math/R')
-rw-r--r--pkgs/applications/science/math/R/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/applications/science/math/R/default.nix b/pkgs/applications/science/math/R/default.nix
index fd391b988c9a..4c8204b37ee3 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
   '';