@@ -1,13 +1,5 @@
11{ stdenv, fetchurl, makeDesktopItem, cmake, boost163, zlib, openssl,
2−R, qt5, libuuid, hunspellDicts, unzip, ant, jdk, gnumake, makeWrapper, pandoc,
3−# If you have set up an R wrapper with other packages by following
4−# something like https://nixos.org/nixpkgs/manual/#r-packages, RStudio
5−# by default not be able to access any of those R packages. In order
6−# to do this, override the argument "R" here with your respective R
7−# wrapper, and set "useRPackages" to true. This will add the
8−# environment variable R_PROFILE_USER to the RStudio wrapper, pointing
9−# to an R script which will allow R to use these packages.
10−useRPackages ? false
2+R, qt5, libuuid, hunspellDicts, unzip, ant, jdk, gnumake, makeWrapper, pandoc
113}:
124
135let
@@ -111,14 +103,8 @@ stdenv.mkDerivation rec {
111103 mimeType = "text/x-r-source;text/x-r;text/x-R;text/x-r-doc;text/x-r-sweave;text/x-r-markdown;text/x-r-html;text/x-r-presentation;application/x-r-data;application/x-r-project;text/x-r-history;text/x-r-profile;text/x-tex;text/x-markdown;text/html;text/css;text/javascript;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;";
112104 };
113105
114− postInstall = let rProfile =
115− # RStudio seems to bypass the environment variables that the R
116− # wrapper already applies, and so this sets R_PROFILE_USER to
117− # again make those R packages accessible:
118− if useRPackages
119− then "--set R_PROFILE_USER ${R}/${R.passthru.fixLibsR}" else "";
120− in ''
121− wrapProgram $out/bin/rstudio --suffix PATH : ${gnumake}/bin ${rProfile}
106+ postInstall = ''
107+ wrapProgram $out/bin/rstudio --suffix PATH : ${gnumake}/bin
122108 mkdir $out/share
123109 cp -r ${desktopItem}/share/applications $out/share
124110 mkdir $out/share/icons