From fdc6e4372fea92d18e0069faf7d5f29314869a56 Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Fri, 20 Sep 2013 09:26:07 +1000 Subject: Wrapped R's package system similarly to perlPackages --- pkgs/applications/science/math/R/default.nix | 2 ++ pkgs/applications/science/math/R/setup-hook.sh | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 pkgs/applications/science/math/R/setup-hook.sh (limited to 'pkgs/applications/science/math/R') 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) -- cgit 1.4.1