nixpkgs/pkgs/applications/science/math/R/setup-hook.sh

6 lines
101 B
Bash

addRLibPath () {
addToSearchPath R_LIBS_SITE $1/library
}
envHooks=(${envHooks[@]} addRLibPath)