add rstudio; add lib function: addFlags

This commit is contained in:
EdenQwQ 2025-03-09 21:24:54 +08:00
parent 7a4adf172d
commit 7ec03b1d88
6 changed files with 31 additions and 39 deletions

View file

@ -1,25 +1,14 @@
pkgs:
let
myRstudio = pkgs.rstudioWrapper.override {
packages = with pkgs.rPackages; [
ggplot2
dplyr
tidyverse
bruceR
afex
ggpubr
reshape2
rmdformats
see
];
};
in
pkgs.symlinkJoin {
name = "rstudio-wrapped";
paths = [ myRstudio ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/rstudio --add-flags \
"--enable-features=UseOzonePlatform --ozone-platform=wayland --use-gl=angle"
'';
pkgs.rstudioWrapper.override {
packages = with pkgs.rPackages; [
ggplot2
dplyr
tidyverse
bruceR
afex
ggpubr
reshape2
rmdformats
see
];
}