Skip to content

Commit

Permalink
rstudio: simplify symlink logic
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaSajt committed Nov 18, 2024
1 parent 190ab94 commit 071c0e9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions pkgs/applications/editors/rstudio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,12 @@ stdenv.mkDerivation rec {
ln $out/lib/rstudio/rstudio.png $out/share/icons/hicolor/48x48/apps
''}
for f in {${
if server then
"crash-handler-proxy,postback,r-ldpath,rpostback,rserver,rserver-pam,rsession,rstudio-server"
else
"diagnostics,rpostback,rstudio"
}}; do
ln -s $out/lib/rstudio/bin/$f $out/bin
done
${lib.optionalString server ''
ln -s $out/lib/rstudio/bin/{crash-handler-proxy,postback,r-ldpath,rpostback,rserver,rserver-pam,rsession,rstudio-server} $out/bin
''}
${lib.optionalString (!server) ''
ln -s $out/lib/rstudio/bin/{diagnostics,rpostback,rstudio} $out/bin
''}
for f in .gitignore .Rbuildignore LICENSE README; do
find . -name $f -delete
Expand Down

0 comments on commit 071c0e9

Please sign in to comment.