summary refs log tree commit diff
path: root/pkgs/applications/science/math/R
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2013-09-20 09:26:07 +1000
committerPeter Simons <simons@cryp.to>2013-09-28 13:19:43 +0200
commitfdc6e4372fea92d18e0069faf7d5f29314869a56 (patch)
tree083900c5a1cc2b8aac0b5d6fd36195070544a4b2 /pkgs/applications/science/math/R
parentb0bf894b432c66fc1f707542a353375996b5dab5 (diff)
downloadnixlib-fdc6e4372fea92d18e0069faf7d5f29314869a56.tar
nixlib-fdc6e4372fea92d18e0069faf7d5f29314869a56.tar.gz
nixlib-fdc6e4372fea92d18e0069faf7d5f29314869a56.tar.bz2
nixlib-fdc6e4372fea92d18e0069faf7d5f29314869a56.tar.lz
nixlib-fdc6e4372fea92d18e0069faf7d5f29314869a56.tar.xz
nixlib-fdc6e4372fea92d18e0069faf7d5f29314869a56.tar.zst
nixlib-fdc6e4372fea92d18e0069faf7d5f29314869a56.zip
Wrapped R's package system similarly to perlPackages
Diffstat (limited to 'pkgs/applications/science/math/R')
-rw-r--r--pkgs/applications/science/math/R/default.nix2
-rw-r--r--pkgs/applications/science/math/R/setup-hook.sh5
2 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/R/default.nix b/pkgs/applications/science/math/R/default.nix
index a6cf329339f8..51505d614399 100644
--- a/pkgs/applications/science/math/R/default.nix
+++ b/pkgs/applications/science/math/R/default.nix
@@ -55,6 +55,8 @@ stdenv.mkDerivation rec {
 
   enableParallelBuilding = true;
 
+  setupHook = ./setup-hook.sh;
+
   meta = {
     homepage = "http://www.r-project.org/";
     description = "a free software environment for statistical computing and graphics";
diff --git a/pkgs/applications/science/math/R/setup-hook.sh b/pkgs/applications/science/math/R/setup-hook.sh
new file mode 100644
index 000000000000..a31289bbfba9
--- /dev/null
+++ b/pkgs/applications/science/math/R/setup-hook.sh
@@ -0,0 +1,5 @@
+addRLibPath () {
+    addToSearchPath R_LIBS_SITE $1/library
+}
+
+envHooks=(${envHooks[@]} addRLibPath)