mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
rstudioWrapper: don't create dangling symlink on darwin
This commit is contained in:
parent
d95b40ed10
commit
508b581122
1 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
runCommand,
|
||||
R,
|
||||
rstudio,
|
||||
|
@ -54,7 +56,13 @@ runCommand (rstudio.name + "-wrapper")
|
|||
''
|
||||
else
|
||||
''
|
||||
ln -s ${rstudio}/share $out
|
||||
${lib.optionalString stdenv.hostPlatform.isLinux ''
|
||||
# symlink files from unwrapped rstudio so that the desktop file and the icons
|
||||
# are also installed when using the wrapped version
|
||||
# TODO: figure out how to handle darwin .app structures
|
||||
ln -s ${rstudio}/share $out
|
||||
''}
|
||||
|
||||
makeWrapper ${rstudio}/bin/rstudio $out/bin/rstudio \
|
||||
--set R_PROFILE_USER $out/$fixLibsR
|
||||
''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue