11 runCommand (radian.name + "-wrapper") {
12 preferLocalBuild = true;
13 allowSubstitutes = false;
15 buildInputs = [ R radian ] ++ recommendedPackages ++ packages;
17 nativeBuildInputs = [ makeWrapper ];
19 passthru = { inherit recommendedPackages; };
21 meta = radian.meta // {
22 # To prevent builds on hydra
24 # prefer wrapper over the package
25 priority = (radian.meta.priority or lib.meta.defaultPriority) - 1;
28 makeWrapper "${radian}/bin/radian" "$out/bin/radian" \
29 --prefix "R_LIBS_SITE" ":" "$R_LIBS_SITE"
30 '' + lib.optionalString wrapR ''
33 makeWrapper "${R}/bin/$exe" "$out/bin/$exe" \
34 --prefix "R_LIBS_SITE" ":" "$R_LIBS_SITE"