We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d95b40e commit 508b581Copy full SHA for 508b581
pkgs/development/r-modules/wrapper-rstudio.nix
@@ -1,4 +1,6 @@
1
{
2
+ lib,
3
+ stdenv,
4
runCommand,
5
R,
6
rstudio,
@@ -54,7 +56,13 @@ runCommand (rstudio.name + "-wrapper")
54
56
''
55
57
else
58
- ln -s ${rstudio}/share $out
59
+ ${lib.optionalString stdenv.hostPlatform.isLinux ''
60
+ # symlink files from unwrapped rstudio so that the desktop file and the icons
61
+ # are also installed when using the wrapped version
62
+ # TODO: figure out how to handle darwin .app structures
63
+ ln -s ${rstudio}/share $out
64
+ ''}
65
+
66
makeWrapper ${rstudio}/bin/rstudio $out/bin/rstudio \
67
--set R_PROFILE_USER $out/$fixLibsR
68
0 commit comments