Skip to content

Commit

Permalink
rstudioWrapper: only symlink share directory if not server
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaSajt committed Dec 18, 2024
1 parent 62dc1f5 commit e7fd1c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/r-modules/wrapper-rstudio.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ runCommand (rstudio.name + "-wrapper")
}
(
''
mkdir -p $out/bin
ln -s ${rstudio}/share $out
mkdir -p $out
echo "# Autogenerated by wrapper-rstudio.nix from R_LIBS_SITE" > $out/$fixLibsR
echo -n ".libPaths(c(.libPaths(), \"" >> $out/$fixLibsR
echo -n $R_LIBS_SITE | sed -e 's/:/", "/g' >> $out/$fixLibsR
Expand All @@ -48,6 +47,7 @@ runCommand (rstudio.name + "-wrapper")
''
else
''
ln -s ${rstudio}/share $out
makeQtWrapper ${rstudio}/bin/rstudio $out/bin/rstudio \
--set R_PROFILE_USER $out/$fixLibsR
'')
Expand Down

0 comments on commit e7fd1c9

Please sign in to comment.