1 { symlinkJoin, R, makeWrapper, recommendedPackages, packages }:
3 name = R.name + "-wrapper";
4 preferLocalBuild = true;
5 allowSubstitutes = false;
7 buildInputs = [R] ++ recommendedPackages ++ packages;
10 nativeBuildInputs = [makeWrapper];
17 makeWrapper "${R}/bin/$exe" "$out/bin/$exe" \
18 --prefix "R_LIBS_SITE" ":" "$R_LIBS_SITE"
22 # Make the list of recommended R packages accessible to other packages such as rpy2
23 passthru = { inherit recommendedPackages; };
26 # To prevent builds on hydra
28 # prefer wrapper over the package
29 priority = (R.meta.priority or 0) - 1;