diff options
Diffstat (limited to 'pkgs/applications/science/math/R')
-rw-r--r-- | pkgs/applications/science/math/R/default.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/science/math/R/setup-hook.sh | 5 |
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) |